GetIntWithExpiration returns the value and expiration or a not found error.
(key int64)
| 317 | |
| 318 | // GetIntWithExpiration returns the value and expiration or a not found error. |
| 319 | func (cache *Cache) GetIntWithExpiration(key int64) (value []byte, expireAt uint32, err error) { |
| 320 | var bKey [8]byte |
| 321 | binary.LittleEndian.PutUint64(bKey[:], uint64(key)) |
| 322 | return cache.GetWithExpiration(bKey[:]) |
| 323 | } |
| 324 | |
| 325 | // DelInt deletes an item in the cache by int key and returns true or false if a delete occurred. |
| 326 | func (cache *Cache) DelInt(key int64) (affected bool) { |