Update has not been implemented yet for lack of a use case, so this method simply calls `Add`. This effectively refreshes the timestamp.
(obj interface{})
| 161 | // Update has not been implemented yet for lack of a use case, so this method |
| 162 | // simply calls `Add`. This effectively refreshes the timestamp. |
| 163 | func (c *ExpirationCache) Update(obj interface{}) error { |
| 164 | return c.Add(obj) |
| 165 | } |
| 166 | |
| 167 | // Delete removes an item from the cache. |
| 168 | func (c *ExpirationCache) Delete(obj interface{}) error { |