package lru

import "github.com/google/certificate-transparency-go/trillian/ctfe/cache/lru"

Package lru defines the IssuanceChainCache type, which implements IssuanceChainCache interface with Get and Set operations.

Index

Types

type CacheOption

type CacheOption struct {
	Size int
	TTL  time.Duration
}

type IssuanceChainCache

type IssuanceChainCache struct {
	// contains filtered or unexported fields
}

func NewIssuanceChainCache

func NewIssuanceChainCache(opt CacheOption) *IssuanceChainCache

func (*IssuanceChainCache) Get

func (c *IssuanceChainCache) Get(_ context.Context, key []byte) ([]byte, error)

func (*IssuanceChainCache) Set

func (c *IssuanceChainCache) Set(_ context.Context, key []byte, chain []byte) error

Source Files

lru.go

Version
v1.3.1 (latest)
Published
Jan 15, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
4 days ago

Tools for package owners.