Documentation ¶ Index ¶ func MapMany[T any, R any](x []T, m func(e T) R) []R func RandomStringFromAlphabet(alphabet string, length int) string type Cache func NewCache() *Cache func (c *Cache) Get(key string) (any, bool) func (c *Cache) SetTTL(key string, value any, ttl time.Duration) type CacheEntry Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MapMany ¶ func MapMany[T any, R any](x []T, m func(e T) R) []R func RandomStringFromAlphabet ¶ func RandomStringFromAlphabet(alphabet string, length int) string Types ¶ type Cache ¶ type Cache struct { // contains filtered or unexported fields } func NewCache ¶ func NewCache() *Cache func (*Cache) Get ¶ func (c *Cache) Get(key string) (any, bool) func (*Cache) SetTTL ¶ func (c *Cache) SetTTL(key string, value any, ttl time.Duration) type CacheEntry ¶ type CacheEntry struct { // contains filtered or unexported fields } Source Files ¶ View all Source files cache.gomap.gorandom.go Click to show internal directories. Click to hide internal directories.