Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedIDGenerator ¶
type CachedIDGenerator struct {
// contains filtered or unexported fields
}
CachedIDGenerator 缓存ID生成器实体
func BuildCacheEntity ¶
func BuildCacheEntity(config *RedisConfig) *CachedIDGenerator
BuildCacheEntity 创建CacheEntity
func (*CachedIDGenerator) GetIDByKey ¶
func (cache *CachedIDGenerator) GetIDByKey(IDKey string) (int64, error)
GetIDByKey 获取分布式ID
func (*CachedIDGenerator) SetBaseOption ¶
func (cache *CachedIDGenerator) SetBaseOption(option *Option) error
SetBaseOption 配置全局参数
Click to show internal directories.
Click to hide internal directories.