-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(peek) [breaking] use shm:ttl() in recent OpenResty versions
Use the new `shm:ttl()` API which was contributed in order to support mlcache's `peek()` method. The existing `peek()` implementation was a temporary solution until then. It is slightly unfortunate that we chose to return the value along with the remaining TTL, as this behavior now must break. Pros/cons --------- + As a result, `peek()` is ligher and thus, faster + It does not touch the shm LRU queue - It is a breaking change Fix #39
- Loading branch information
1 parent
e6980c2
commit 23e5401
Showing
2 changed files
with
103 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters