Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug that made cache unusable

  • Loading branch information...
commit 520d3cce4111f797d25eba14e519d6973bc6a25d 1 parent 83fbf93
Evan Shaw edsrzf authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cache/cache.go
4 cache/cache.go
View
@@ -87,12 +87,12 @@ func (c *Cache) Clear() (err error) {
// Put adds an Item to the cache, overwriting any existing key of the same name.
func (c *Cache) Put(key string, item *Item) (err error) {
in := struct {
- Body interface{} `json:"body"`
+ Value interface{} `json:"value"`
ExpiresIn int `json:"expires_in,omitempty"`
Replace bool `json:"replace,omitempty"`
Add bool `json:"add,omitempty"`
}{
- Body: item.Value,
+ Value: item.Value,
ExpiresIn: int(item.Expiration.Seconds()),
Replace: item.Replace,
Add: item.Add,
Please sign in to comment.
Something went wrong with that request. Please try again.