cache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheStore

func NewCacheStore(cache cache.Cache, prefix string, opts ...Option) cagoSession.Store

Types

type Option

type Option func(options *Options)

func DefaultMaxAge

func DefaultMaxAge(maxAge int) Option

DefaultMaxAge 默认过期时间, 单位秒

func WithCodecs

func WithCodecs(codecs ...securecookie.Codec) Option

func WithPrefix

func WithPrefix(prefix string) Option

func WithRefreshTime

func WithRefreshTime(refreshTime int) Option

WithRefreshTime 设置刷新时间, 单位秒

func WithSessionOptions

func WithSessionOptions(options *sessions.Options) Option

type Options

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

Jump to

Keyboard shortcuts

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