Documentation ¶ Index ¶ Constants func CurrentKey(channelID int64) string func LockKey(channelID int64) string func Next(ctx context.Context, c cache.Cache, store channelStore, channelID int64) (int64, error) func ReservedMaxKey(channelID int64) string Constants ¶ View Source const ( BlockSize int64 = 256 CacheTTLSeconds int64 = 60 * 60 * 24 * 30 LockTTLSeconds int64 = 5 ) Variables ¶ This section is empty. Functions ¶ func CurrentKey ¶ func CurrentKey(channelID int64) string func LockKey ¶ func LockKey(channelID int64) string func Next ¶ func Next(ctx context.Context, c cache.Cache, store channelStore, channelID int64) (int64, error) func ReservedMaxKey ¶ func ReservedMaxKey(channelID int64) string Types ¶ This section is empty. Source Files ¶ View all Source files allocator.gocache.go Click to show internal directories. Click to hide internal directories.