certcache

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptedCache

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

func NewEncryptedCache

func NewEncryptedCache(key []byte, next autocert.Cache) (*EncryptedCache, error)

func (*EncryptedCache) Delete

func (c *EncryptedCache) Delete(ctx context.Context, key string) error

func (*EncryptedCache) Get

func (c *EncryptedCache) Get(ctx context.Context, key string) ([]byte, error)

func (*EncryptedCache) Put

func (c *EncryptedCache) Put(ctx context.Context, key string, data []byte) error

type LocalCertCache

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

func NewLocalCertCache

func NewLocalCertCache(next autocert.Cache, ttl, timeout time.Duration) *LocalCertCache

func (*LocalCertCache) Delete

func (cc *LocalCertCache) Delete(ctx context.Context, key string) error

func (*LocalCertCache) Get

func (cc *LocalCertCache) Get(_ context.Context, key string) ([]byte, error)

func (*LocalCertCache) Put

func (cc *LocalCertCache) Put(ctx context.Context, key string, data []byte) error

func (*LocalCertCache) Start

func (cc *LocalCertCache) Start()

func (*LocalCertCache) Stop

func (cc *LocalCertCache) Stop()

type RedisCache

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

func NewRedisCache

func NewRedisCache(r redis.Cmdable, prefix string) *RedisCache

func RedisCacheFromURL

func RedisCacheFromURL(url string, prefix string) (*RedisCache, error)

func RedisClusterCacheFromURL

func RedisClusterCacheFromURL(url string, prefix string) (*RedisCache, error)

func (*RedisCache) Delete

func (r *RedisCache) Delete(ctx context.Context, key string) error

func (*RedisCache) Get

func (r *RedisCache) Get(ctx context.Context, key string) ([]byte, error)

func (*RedisCache) Put

func (r *RedisCache) Put(ctx context.Context, key string, data []byte) error

Jump to

Keyboard shortcuts

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