Mercurial
Mercurial
>
prosody
>
prosody
/ file revisions
summary
|
shortlog
|
changelog
|
graph
|
tags
|
bookmarks
|
branches
|
file
| revisions |
annotate
|
diff
|
comparison
|
rss
|
help
(0)
tip
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
util/cache.lua
Tue, 18 Oct 2016 15:19:01 +0200
Kim Alvefur
util.cache: Ignore unused argument [luacheck]
file
|
diff
|
annotate
Sun, 22 May 2016 18:18:23 +0100
Matthew Wild
util.cache: Add support for creating a proxy table to a cache, that looks and acts (mostly) like a normal table. No tests yet.
file
|
diff
|
annotate
Fri, 15 Apr 2016 13:19:20 +0200
Kim Alvefur
util.cache: Add method for iterating over values
file
|
diff
|
annotate
Thu, 17 Mar 2016 19:08:42 +0000
Matthew Wild
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.
file
|
diff
|
annotate
Thu, 17 Mar 2016 19:07:40 +0000
Matthew Wild
util.cache: Add head() and tail() methods (and tests)
file
|
diff
|
annotate
Tue, 22 Dec 2015 20:10:07 +0000
Matthew Wild
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)
file
|
diff
|
annotate
Thu, 26 Nov 2015 00:07:48 +0000
Matthew Wild
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
file
|
diff
|
annotate
Wed, 25 Nov 2015 20:49:41 +0100
Kim Alvefur
util.cache: Make sure cache size is specified as an integer
file
|
diff
|
annotate
Tue, 24 Nov 2015 10:44:41 +0000
Matthew Wild
util.cache: Ordered key->value data structure, with size limit (same as pubsub)
file
|
diff
|
annotate
less
more
(0)
tip