Skip to content

Tags: RatkoR/cache2go

Tags

v2.0.0

Toggle v2.0.0's commit message
Adds keyAliases member for additional aliases to cached items.

Cached item can have additional aliases. For example: you add
a cached item and assign it a key 'k1'. You can set additional
aliases that reference this cached item:
  c.AddAlias('a1', 'k1')
will add an alias to k1 cached item. You can then retrieve k1
item with:
  c.Value('k1')
  or
  c.Value('a1')
They both reference the same item in cache.