//
pkg.gl
Category
github.com/knrt10/grpc-cache
api
server
package
0.0.0-20200615214053-b18812d7f12b
Repository:
https://github.com/knrt10/grpc-cache.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
1
Files
211 SLOC
#
Functions
NewCacheService
NewCacheService is used to initialize a new cache.
#
Variables
ErrKeyExpired
ErrKeyExpired for keys expired.
ErrNoKey
ErrNoKey for key not found.
#
Structs
Cache
Cache is a struct in which the cache's methods synchronize access to this map, so it is not recommended to keep any references to the map around after creating a cache.
Item
Item items value of key and expiration.