package
0.0.0-20210718062109-496be73d0ac7
Repository: https://github.com/piyuo/libsrv.git
Documentation: pkg.go.dev
# Functions
Count return cache entry total count
count := Count()
.
Delete delete entry from cache
Delete("key1")
.
Get an entry from the cache.
GetInt64 return an int64 from the cache.
GetString return an string from the cache.
GzipGet get an entry from the cache and decompress zipped content
found, bytes, err := GzipGet("key1")
.
GzipSet compress byte array before set an entry to the cache
err = GzipSet("key1", []byte("hi"), 0)
.
IDelete delete entry from cache
IDelete(123)
.
Get an entry from the cache.
Set an entry to the cache, replacing any existing entry.
Set an entry to the cache, replacing any existing entry.
SetInt64 set int64 entry to the cache, replacing any existing entry.
SetString set string entry to the cache, replacing any existing entry.