<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://hg.omfa.de/prosody-hg/</link>
    <language>en-us</language>

    <title>prosody-hg: util/cache.lua history</title>
    <description>util/cache.lua revision history</description>
    <item>
    <title>util.cache: Pass cache itself to eviction callback</title>
    <link>http://hg.omfa.de/prosody-hg/log/bbdaa770b955/util/cache.lua</link>
    <description><![CDATA[util.cache: Pass cache itself to eviction callback<br/>
<br/>
Simplifies access to the cache without moving code around a lot given<br/>
the currently common pattern of<br/>
<br/>
	local some_cache = cache.new(size, function(k,v) end)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 30 Jun 2023 22:01:55 +0200</pubDate>
</item>
<item>
    <title>util.cache: Keep eviction candidate if callback resized to make room</title>
    <link>http://hg.omfa.de/prosody-hg/log/8ec7b7d6556f/util/cache.lua</link>
    <description><![CDATA[util.cache: Keep eviction candidate if callback resized to make room<br/>
<br/>
Previously either the old or the new values would be rejected, even if<br/>
the cache was resized to allow more items.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 30 Jun 2023 22:01:49 +0200</pubDate>
</item>
<item>
    <title>util.cache: Add __name to metatable</title>
    <link>http://hg.omfa.de/prosody-hg/log/c4c06fbb7d87/util/cache.lua</link>
    <description><![CDATA[util.cache: Add __name to metatable]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 30 Oct 2020 14:05:07 +0000</pubDate>
</item>
<item>
    <title>util.cache: Call on-eviction callback when shrinking</title>
    <link>http://hg.omfa.de/prosody-hg/log/3eff1b60269a/util/cache.lua</link>
    <description><![CDATA[util.cache: Call on-eviction callback when shrinking]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 18 Nov 2017 21:35:40 +0100</pubDate>
</item>
<item>
    <title>util.cache: Add a method to resize the cache</title>
    <link>http://hg.omfa.de/prosody-hg/log/99d85731e3ee/util/cache.lua</link>
    <description><![CDATA[util.cache: Add a method to resize the cache]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 18 Nov 2017 21:35:31 +0100</pubDate>
</item>
<item>
    <title>util.cache: Add method for removing all data (does not call eviction callback)</title>
    <link>http://hg.omfa.de/prosody-hg/log/fbe1f99fb245/util/cache.lua</link>
    <description><![CDATA[util.cache: Add method for removing all data (does not call eviction callback)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 07 Nov 2017 00:38:47 +0100</pubDate>
</item>
<item>
    <title>util.cache: Ignore unused argument [luacheck]</title>
    <link>http://hg.omfa.de/prosody-hg/log/9385c367e920/util/cache.lua</link>
    <description><![CDATA[util.cache: Ignore unused argument [luacheck]]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 18 Oct 2016 15:19:01 +0200</pubDate>
</item>
<item>
    <title>util.cache: Add support for creating a proxy table to a cache, that looks and acts (mostly) like a normal table. No tests yet.</title>
    <link>http://hg.omfa.de/prosody-hg/log/8603b16e85c7/util/cache.lua</link>
    <description><![CDATA[util.cache: Add support for creating a proxy table to a cache, that looks and acts (mostly) like a normal table. No tests yet.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 22 May 2016 18:18:23 +0100</pubDate>
</item>
<item>
    <title>util.cache: Add method for iterating over values</title>
    <link>http://hg.omfa.de/prosody-hg/log/8ca7f1c2c660/util/cache.lua</link>
    <description><![CDATA[util.cache: Add method for iterating over values]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 15 Apr 2016 13:19:20 +0200</pubDate>
</item>
<item>
    <title>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.</title>
    <link>http://hg.omfa.de/prosody-hg/log/70ab13e81cf5/util/cache.lua</link>
    <description><![CDATA[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.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 17 Mar 2016 19:08:42 +0000</pubDate>
</item>
<item>
    <title>util.cache: Add head() and tail() methods (and tests)</title>
    <link>http://hg.omfa.de/prosody-hg/log/42e7545d5ae3/util/cache.lua</link>
    <description><![CDATA[util.cache: Add head() and tail() methods (and tests)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 17 Mar 2016 19:07:40 +0000</pubDate>
</item>
<item>
    <title>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)</title>
    <link>http://hg.omfa.de/prosody-hg/log/e0a0af42b09f/util/cache.lua</link>
    <description><![CDATA[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)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 22 Dec 2015 20:10:07 +0000</pubDate>
</item>
<item>
    <title>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</title>
    <link>http://hg.omfa.de/prosody-hg/log/d779c55058c6/util/cache.lua</link>
    <description><![CDATA[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]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 26 Nov 2015 00:07:48 +0000</pubDate>
</item>
<item>
    <title>util.cache: Make sure cache size is specified as an integer</title>
    <link>http://hg.omfa.de/prosody-hg/log/0a31ec3193f0/util/cache.lua</link>
    <description><![CDATA[util.cache: Make sure cache size is specified as an integer]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 25 Nov 2015 20:49:41 +0100</pubDate>
</item>
<item>
    <title>util.cache: Ordered key-&gt;value data structure, with size limit (same as pubsub)</title>
    <link>http://hg.omfa.de/prosody-hg/log/d636815d81c3/util/cache.lua</link>
    <description><![CDATA[util.cache: Ordered key-&gt;value data structure, with size limit (same as pubsub)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 24 Nov 2015 10:44:41 +0000</pubDate>
</item>

  </channel>
</rss>
