Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface {
	Get(key string) *Result
	Put(key string, value interface{}, expire time.Duration) error
	Has(key string) bool
	Remember(key string, fc func() interface{}, expire time.Duration) *Result
	GC() error
}
    func NewMemoryStore ¶
func NewMemoryStore() Cache
func NewRedisStore ¶
func NewRedisStore(client *redis.Client) Cache
type MarshalFunc ¶
type UnmarshalFunc ¶
 Click to show internal directories. 
   Click to hide internal directories.