package
0.1.4
Repository: https://github.com/hyp3rd/hypercache.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

New creates a new concurrent map.
NewStringer creates a new concurrent map.
NewWithCustomShardingFunction creates a new concurrent map.

# Variables

ShardCount is the number of shards.

# Structs

ConcurrentMap is a "thread" safe map of type string:Anything.
ConcurrentMapShared is a "thread" safe string to anything map.
Tuple is used by the Iter & IterBuffered functions to wrap two variables together over a channel,.

# Interfaces

Stringer is the interface implemented by any value that has a String method,.

# Type aliases

IterCb is the iterator callbacalled for every key,value found in maps.
RemoveCb is a callback executed in a map.RemoveCb() call, while Lock is held If returns true, the element will be removed from the map.
UpsertCb callback to return new element to be inserted into the map It is called while lock is held, therefore it MUST NOT try to access other keys in same map, as it can lead to deadlock since Go sync.RWLock is not reentrant.