bbolt

package
v2.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package bbolt is the bbolt implementation of the Trickster Cache

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheClient

type CacheClient struct {
	Name   string
	Config *options.Options
	// contains filtered or unexported fields
}

CacheClient describes a BBolt CacheClient

func New

func New(cacheName, fileName, bucketName string, opts *options.Options) *CacheClient

New returns a new bbolt cache as a Trickster Cache Interface type

func (*CacheClient) Close

func (c *CacheClient) Close() error

func (*CacheClient) Connect

func (c *CacheClient) Connect() error

Connect instantiates the Cache mutex map and starts the Expired Entry Reaper goroutine

func (*CacheClient) Remove

func (c *CacheClient) Remove(cacheKey ...string) error

func (*CacheClient) Retrieve

func (c *CacheClient) Retrieve(cacheKey string) ([]byte, status.LookupStatus, error)

func (*CacheClient) Store

func (c *CacheClient) Store(cacheKey string, data []byte, _ time.Duration) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL