tango.util.container.more.CacheMap

Public Imports

tango.util.container.Container
public import tango.util.container.Container;
Undocumented in source.

Members

Classes

CacheMap
class CacheMap(K, V, alias Hash = Container.hash, alias Reap = Container.reap, alias Heap = Container.Collect)

CacheMap extends the basic hashmap type by adding a limit to the number of items contained at any given time. In addition, CacheMap sorts the cache entries such that those entries frequently accessed are at the head of the queue, and those least frequently accessed are at the tail. When the queue becomes full, old entries are dropped from the tail and are reused to house new cache entries.

Functions

main
void main()

Meta

Since

0.99.7

License

BSD style: $(LICENSE)

Version

Initial release: April 2008