//
pkg.gl
Category
github.com/bcc-code/bcc-media-platform
backend
remotecache
package
0.0.0-20241112125757-779aa9ab4555
Repository:
https://github.com/bcc-code/bcc-media-platform.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
6
Files
106 SLOC
#
Functions
Get
Get the specified key.
GetOrCreate
GetOrCreate the cache entry.
Lock
Lock the specified key and get a release method in return.
New
New remote cache struct.
Release
Release the lock with logging the error occuring.
Set
Set the specified key to the provided value with ttl.
#
Variables
Nil
Nil is the error value in case the specified key does not exist.
#
Structs
Client
Client contains the client and locker.
Options
Options are definable options for caching an entry.
#
Interfaces
RemoteLock
RemoteLock is a lock that can be released.