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

add GetWithExpirationUpdate #96

Open sbabiv opened 5 years ago

sbabiv commented 5 years ago

In many cases, it is convenient to get items with an updated cache lifetime.

mrbenosborne commented 5 years ago

Hi @sbabiv,

This repository seems to have gone stale and I am going to keep the go-cache running, I have added your PR if you are interested.

https://github.com/mrbenosborne/go-cache/pull/1