mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-15 01:07:34 +00:00
Add self-sufficient cache and abandon outdated library.
This commit is contained in:
@@ -5,7 +5,7 @@ func (c *BaseClient) cacheLookup(hash string) []byte {
|
||||
obj, found := c.cache.client.Get(hash)
|
||||
if found {
|
||||
c.Logger.Debug(c, "Cache hit;", "hash", hash)
|
||||
return obj.([]byte)
|
||||
return obj
|
||||
}
|
||||
// if error is not nil it means that hash is not present in cache
|
||||
c.Logger.Debug(c, "Cache miss;", "hash", hash)
|
||||
|
||||
Reference in New Issue
Block a user