Documentation
¶
Index ¶
- Constants
- type Application
- type Driver
- type Lock
- type Memory
- func (r *Memory) Add(key string, value any, t time.Duration) bool
- func (r *Memory) Decrement(key string, value ...int64) (int64, error)
- func (r *Memory) Docker() (docker.CacheDriver, error)
- func (r *Memory) Flush() bool
- func (r *Memory) Forever(key string, value any) bool
- func (r *Memory) Forget(key string) bool
- func (r *Memory) Get(key string, def ...any) any
- func (r *Memory) GetBool(key string, def ...bool) bool
- func (r *Memory) GetInt(key string, def ...int) int
- func (r *Memory) GetInt64(key string, def ...int64) int64
- func (r *Memory) GetString(key string, def ...string) string
- func (r *Memory) Has(key string) bool
- func (r *Memory) Increment(key string, value ...int64) (int64, error)
- func (r *Memory) Lock(key string, t ...time.Duration) contractscache.Lock
- func (r *Memory) Pull(key string, def ...any) any
- func (r *Memory) Put(key string, value any, t time.Duration) error
- func (r *Memory) Remember(key string, seconds time.Duration, callback func() (any, error)) (any, error)
- func (r *Memory) RememberForever(key string, callback func() (any, error)) (any, error)
- func (r *Memory) WithContext(ctx context.Context) contractscache.Driver
- type ServiceProvider
Constants ¶
View Source
const NoExpiration time.Duration = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
func NewApplication ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
func (*Lock) BlockWithTicker ¶
func (*Lock) ForceRelease ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) Flush ¶
Flush Remove all items from the cache. Clear in place: replacing the sync.Map would swap out the mutex held by concurrent readers.
func (*Memory) Remember ¶
func (r *Memory) Remember(key string, seconds time.Duration, callback func() (any, error)) (any, error)
Remember Get an item from the cache, or execute the given Closure and store the result.
func (*Memory) RememberForever ¶
RememberForever Get an item from the cache, or execute the given Closure and store the result forever.
func (*Memory) WithContext ¶
func (r *Memory) WithContext(ctx context.Context) contractscache.Driver
type ServiceProvider ¶
type ServiceProvider struct {
}
func (*ServiceProvider) Boot ¶
func (r *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (r *ServiceProvider) Register(app foundation.Application)
func (*ServiceProvider) Relationship ¶
func (r *ServiceProvider) Relationship() binding.Relationship
Source Files
¶
Click to show internal directories.
Click to hide internal directories.