Documentation ¶
Index ¶
- Constants
- func Clear() error
- func Close()
- func Delete(key string) error
- func DeleteMultiple(keys []string) error
- func Get(key, defaultV string) string
- func GetMultiple(keys []string, defaultV string) map[string]string
- func Has(key string) bool
- func Init()
- func Set(key, value string, ttl int) error
- func SetMultiple(args map[string]string, ttl int) error
- type Psr16Cache
Constants ¶
View Source
const ( Redis = "redis" Memcached = "memcached" PDO = "pdo" )
cache type
Variables ¶
This section is empty.
Functions ¶
func DeleteMultiple ¶
DeleteMultiple delete multiple value in cache
func GetMultiple ¶
GetMultiple get multiple value in cache
Types ¶
type Psr16Cache ¶
type Psr16Cache interface { Get(key, defaultV string) string Set(key, value string, ttl int) error Delete(key string) error Clear() error GetMultiple(keys []string, defaultV string) map[string]string SetMultiple(args map[string]string, ttl int) error DeleteMultiple(keys []string) error Has(key string) bool Close() }
Psr16Cache ref php Psr16Cache Ref: https://github.com/symfony/symfony/blob/5.x/src/Symfony/Component/Cache/Psr16Cache.php
Click to show internal directories.
Click to hide internal directories.