KeyedCache

1.0.0

A key/value based caching mechanism.
Balancingrock/KeyedCache

What's New

Release 1.0.0

2019-08-18T11:48:36Z

Swiftfire -and all its supporting packages- have been issued in their release 1.0.0

KeyedChache has a minor change to reflect the changes in BRUtils.

KeyedCache

A dictionary (key/value) based caching protocol.

Description

A key/value based caching mechanism with an implementation for an in-memory cache.

The cache can be limited in size by either a maximum number of items or a maximum size.

If a new item must be placed and an old item must be purged, the purging strategy can be either "least recently used" or "least used".

To allow limiting by size, items to be stored in the cache must implement the EstimatedMemoryConsumption protocol. A default implementation is provided if this limiting strategy is not used. When using this strategy, the EstimatedMemoryConsumption should make a "best guess" at the memory consumption. The better the "guess" the better this limiting strategy will work. Note that for many (most?) uses it will not be necessary to use exact values.

Reference manual

See http://swiftfire.nl/projects/keyedcache/reference/index.html

Version history

Note: Planned releases are for information only and subject to change without notice.

1.0.0 (Current)

  • To accompany Swiftfire 1.0.0

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

Last updated: Tue Nov 08 2022 06:21:30 GMT-0500 (GMT-05:00)