prosody
log
graph
tags
bookmarks
branches
5e1012f2f2b7
browse
changeset
util/cache.lua
annotate
comparison
diff
file
raw
Log
latest
help
RSS:
Atom:
Find changesets by keywords by author, files, the commit message, revision number or hash, or
revset expression
.
Software
/
code
/
prosody
Log
util/cache.lua @ 10196:
5e1012f2f2b7
less
more
|
(0)
tip
description
author
age
util.cache: Call on-eviction callback when shrinking
Kim Alvefur
2017-11-18
util.cache: Add a method to resize the cache
Kim Alvefur
2017-11-18
util.cache: Add method for removing all data (does not call eviction callback)
Kim Alvefur
2017-11-06
util.cache: Ignore unused argument [luacheck]
Kim Alvefur
2016-10-18
util.cache: Add support for creating a proxy table to a cache, that looks and acts (mostly) like a normal table. No tests yet.
Matthew Wild
2016-05-22
util.cache: Add method for iterating over values
Kim Alvefur
2016-04-15
util.cache: Change behaviour of on_evict (and tests). Now accepts false instead of a function (never evict), or on_evict can return false to prevent eviction.
Matthew Wild
2016-03-17
util.cache: Add head() and tail() methods (and tests)
Matthew Wild
2016-03-17
util.cache (and tests): Call on_evict after insertion of the new key, so inside on_evict we can be more certain about the current state of the cache (i.e. full, new item added, old item removed)
Matthew Wild
2015-12-22
util.cache: Small update to prefix private fields with an underscore, add a :count() method (same as util.queue) and add an optional on_evict callback
Matthew Wild
2015-11-26
util.cache: Make sure cache size is specified as an integer
Kim Alvefur
2015-11-25
util.cache: Ordered key->value data structure, with size limit (same as pubsub)
Matthew Wild
2015-11-24
less
more
|
(0)
tip