Closed yagince closed 5 years ago
@jaemk How is it?
sorry I haven't been super responsive @yagince ! Could you break this logic out to a new trait method, maybe called cache_reset
? That way it's clear whether you want to clear cached items or reset the cache to an empty state
Could you break this logic out to a new trait method, maybe called cache_reset? That way it's clear whether you want to clear cached items or reset the cache to an empty state
I understand, I think its better too. I will try.
@jaemk https://github.com/jaemk/cached/pull/25/commits/d4b8f3840f3aa928e93c93c2baabc6dce8de2723 how do you think this?
looks good - thanks, @yagince !
https://github.com/jaemk/cached/pull/24 In the above PullRequest, it was changed to release the memory when
cache_clear
was called. After that, the following PullRequest was merged and returned to the original. https://github.com/jaemk/cached/pull/23I tried to implement it again. How is it?