patrickmn / go-cache

An in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications.
https://patrickmn.com/projects/go-cache/
MIT License
8.16k stars 874 forks source link

Expire method #172

Open alejandro-carstens opened 11 months ago

alejandro-carstens commented 11 months ago

Adding expire method similar to the EXPIRE method in Redis or Touch in Memcached. In essence it exposes functionality to override an item's expiration given a key and a new duration.