package
0.0.5
Repository: https://github.com/imkouga/kratos-pkg.git
Documentation: pkg.go.dev

# README

LoadableCache

能够定时自动刷新内存中的数据,常用于 常量、枚举、变更频率较小的数据。

场景

  • 常量/枚举
  • 变更频率较小的数据
  • 白山App信息
  • 白山服务类型信息
  • etc..

从数据库加载并缓存到内存中,避免每次都从数据库中查询

# Functions

No description provided by the author
WithBlock block call first RefreshAfterWrite.
WithExpiration cache expiration, Automatically reload if timeout.
WithRefreshAfterWrite refresh data provider.
WithSize cache size limit.
WithTracing enable otel tracing.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author