Documentation ¶
Index ¶
- type Application
- type Redis
- func (r *Redis) Add(key string, value interface{}, seconds time.Duration) bool
- func (r *Redis) Flush() bool
- func (r *Redis) Forever(key string, value interface{}) bool
- func (r *Redis) Forget(key string) bool
- func (r *Redis) Get(key string, defaults interface{}) interface{}
- func (r *Redis) Has(key string) bool
- func (r *Redis) Pull(key string, defaults interface{}) interface{}
- func (r *Redis) Put(key string, value interface{}, seconds time.Duration) error
- func (r *Redis) Remember(key string, ttl time.Duration, callback func() interface{}) (interface{}, error)
- func (r *Redis) RememberForever(key string, callback func() interface{}) (interface{}, error)
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { }
func (*Application) Init ¶
func (app *Application) Init() cache.Store
type Redis ¶
type Redis struct { Prefix string Redis *redis.Client }
func (*Redis) Remember ¶
func (r *Redis) Remember(key string, ttl time.Duration, callback func() interface{}) (interface{}, error)
Remember Get an item from the cache, or execute the given Closure and store the result.
func (*Redis) RememberForever ¶
RememberForever Get an item from the cache, or execute the given Closure and store the result forever.
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (database *ServiceProvider) Boot()
Boot Bootstrap any application services after register.
func (*ServiceProvider) Register ¶
func (database *ServiceProvider) Register()
Register any application services.
Click to show internal directories.
Click to hide internal directories.