Skip to content

Add method to retrieve CacheItem rather than the value of the item#53

Open
rahulraheja wants to merge 2 commits intopatrickmn:masterfrom
rahulraheja:ExpiredCacheEntry
Open

Add method to retrieve CacheItem rather than the value of the item#53
rahulraheja wants to merge 2 commits intopatrickmn:masterfrom
rahulraheja:ExpiredCacheEntry

Conversation

@rahulraheja
Copy link
Copy Markdown

@rahulraheja rahulraheja commented May 6, 2017

Alternative implementation, more generic, for #47

@rahulraheja
Copy link
Copy Markdown
Author

@patrickmn Any thoughts on the same?

Comment thread README.md Outdated
// foo can then be passed around freely as a string

// Want to get the entry in the cache for an item not just the value?
var cahceItem Item
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"cahceItem" is misspelled

@rumbergd
Copy link
Copy Markdown

rumbergd commented Jul 6, 2017

I have a valid use case for using this method new method - GetCacheItem. It'll let me implement custom logic based on the item expiration time... more specifically it'll be useful to implement graceful degradation using go-cache

@pablodz
Copy link
Copy Markdown

pablodz commented Jan 3, 2024

Found this fork: https://github.com/arp242/zcache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants