Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeFileInfo ¶
func DecodeFileInfo(bytes []byte) (cacheproxy.FileInformation, error)
func EncodeFileInfo ¶
func EncodeFileInfo(fileInfo cacheproxy.FileInformation) ([]byte, error)
Types ¶
type RemoteFileCache ¶
type RemoteFileCache struct {
// contains filtered or unexported fields
}
func NewRemoteFileCache ¶
func NewRemoteFileCache(dbPath string) (*RemoteFileCache, error)
NewRemoteFileCache initializes a new Badger database instance for the RemoteFileCache
func (*RemoteFileCache) Close ¶
func (r *RemoteFileCache) Close() error
Close closes the Badger database
func (*RemoteFileCache) Get ¶
func (r *RemoteFileCache) Get(key string) (cacheproxy.FileInformation, error)
Get retrieves a value by key from the Badger database
func (*RemoteFileCache) Keys ¶
func (r *RemoteFileCache) Keys() (keys []string, err error)
func (*RemoteFileCache) Set ¶
func (r *RemoteFileCache) Set(key string, information cacheproxy.FileInformation) error
Set stores a key-value pair in the Badger database
Click to show internal directories.
Click to hide internal directories.