- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
4,842 Client Mods
-
Popular Downloads
- Top World of Warcraft Addons
- Top Rift Addons
- Top Skyrim Mods
- Top Minecraft Server Mods
- Top Terraria Maps
- Top Starcraft II Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Forums
LibRingCache
- 0 Likes
- World of Warcraft
- 632 Downloads
- Supports: 3.2.0
- 0 Average Daily Downloads
- Comments
- Created 5/14/2009 6:20:47 AM
- Updated 10/26/2009 7:46:59 AM
- 0 Favorites
- Project Site
- License: GNU General Public License version 3 (GPLv3)
- Release Type: Mature
- Newest File: 1.5
About LibRingCache
LibRingCache is an implementation of a cache that selectively lets the garbage collector collect old items but keeps the newest.
See documentation for usage information.
Why would you want to use this?
Currently you might just have a simple cache table with a _mode = "kv" metatable, but that isn't the best way because when the garbage collector runs, it will collect all entries no matter how old (or recent) they are. This cache implementation will ensure that you will keep your N most recent items in the cache.
Generally spoken, LibRingCache is useful to you if you want to keep X recent items, but still have to access them by an associative value (as opposed to just an incrementing number)
Because a cache that is always empty is useless.
------------------------------------------------------------------------
r13 | watchout | 2009-10-26 12:46:51 +0000 (Mon, 26 Oct 2009) | 1 line
Changed paths:
A /tags/1.5 (from /trunk:12)
Tagging as 1.5
------------------------------------------------------------------------
r12 | watchout | 2009-08-08 14:16:46 +0000 (Sat, 08 Aug 2009) | 1 line
Changed paths:
M /trunk/LibRingCache-1.0.lua
M /trunk/LibRingCache-1.0.toc
redesign of Cache:append, new type of cache: 'blackbox', blackbox allows only adding of entries but not retrieving since the key is unknown. use LRC:createBlackbox(size, feed); Cache:append is only available for blackbox caches now.
------------------------------------------------------------------------
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| 1.5 | Release | 3.2.0 | 154 | 10/26/2009 7:46:59 AM |
| 1.1 | Release | 3.1.0 | 212 | 7/8/2009 5:52:07 AM |
| 1.0 Stable | Release | 3.1.0 | 173 | 6/11/2009 9:16:21 AM |
| Beta 1 | Beta | 3.1.0 | 151 | 5/14/2009 5:03:31 PM |
Comments