go-cache icon indicating copy to clipboard operation
go-cache copied to clipboard

Adding some utility functions to cache:

Open EVODelavega opened this issue 8 years ago • 0 comments

  • GetRefresh: Get item from cache, update TTL. This allows users to store resources in cache and have them automatically removed if they haven't been used for X amount of time
  • GetRefreshDefault: Same as GetRefresh with default duration (=~ SetDefault)
  • Pop: Get elements from cache, and remove them

TODO (and soon to follow)

A couple of tests covering these 3 functions

EVODelavega avatar May 31 '17 14:05 EVODelavega