cache

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheManager

func NewCacheManager(cfg contracts.Config) (contracts.Cache, error)

NewCacheManager 根据配置创建缓存管理器。

func NewMemoryStore

func NewMemoryStore(shardCount int, gcInterval time.Duration) *memoryStore

Types

type ServiceProvider

type ServiceProvider struct{}

ServiceProvider Cache 服务提供者。

func (*ServiceProvider) Boot

func (*ServiceProvider) Register

func (sp *ServiceProvider) Register(app foundation.Application)

Jump to

Keyboard shortcuts

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