Documentation
¶
Index ¶
- func Clear(match string)
- func Delete(key string) bool
- func Empty()
- func Get(key string) (interface{}, bool)
- func GetArrayJson(key string) ([]et.Json, bool)
- func GetBool(key string) (bool, bool)
- func GetDuration(key string) (time.Duration, bool)
- func GetFloat64(key string) (float64, bool)
- func GetInt(key string) (int, bool)
- func GetInt64(key string) (int64, bool)
- func GetJson(key string) (et.Json, bool)
- func GetStr(key string) (string, bool)
- func GetTime(key string) (time.Time, bool)
- func Keys() []string
- func Len() int
- func More(key string, expiration time.Duration)
- func Values() []string
- type Item
- func (i *Item) ArrayDuration() []time.Duration
- func (i *Item) ArrayFloat() []float64
- func (i *Item) ArrayInt() []int
- func (i *Item) ArrayJson() []et.Json
- func (i *Item) ArrayMap() []map[string]interface{}
- func (i *Item) ArrayStr() []string
- func (i *Item) ArrayTime() []time.Time
- func (i *Item) Bool() bool
- func (i *Item) Duration() time.Duration
- func (i *Item) Float() float64
- func (i *Item) Get() interface{}
- func (i *Item) Int() int
- func (i *Item) Int64() int64
- func (i *Item) Json() et.Json
- func (i *Item) Map() map[string]interface{}
- func (i *Item) Set(value interface{}, expiration time.Duration) interface{}
- func (i *Item) Str() string
- func (i *Item) Time() time.Time
- type Mem
- func (s *Mem) Clear(match string)
- func (s *Mem) Delete(key string) bool
- func (s *Mem) Empty()
- func (s *Mem) Get(key string) (interface{}, bool)
- func (s *Mem) GetArrayFloat(key string, def []float64) ([]float64, bool)
- func (s *Mem) GetArrayInt(key string, def []int) ([]int, bool)
- func (s *Mem) GetArrayJson(key string, def []et.Json) ([]et.Json, bool)
- func (s *Mem) GetArrayStr(key string, def []string) ([]string, bool)
- func (s *Mem) GetBool(key string, def bool) (bool, bool)
- func (s *Mem) GetDuration(key string, def time.Duration) (time.Duration, bool)
- func (s *Mem) GetFloat(key string, def float64) (float64, bool)
- func (s *Mem) GetInt(key string, def int) (int, bool)
- func (s *Mem) GetInt64(key string, def int64) (int64, bool)
- func (s *Mem) GetItem(key string) (*Item, bool)
- func (s *Mem) GetJson(key string, def et.Json) (et.Json, bool)
- func (s *Mem) GetStr(key string) (string, bool)
- func (s *Mem) GetTime(key string, def time.Time) (time.Time, bool)
- func (s *Mem) Keys() []string
- func (s *Mem) Len() int
- func (s *Mem) More(key string, expiration time.Duration) int64
- func (s *Mem) Set(key string, value interface{}, expiration time.Duration) *Item
- func (s *Mem) Type() string
- func (s *Mem) Values() []string
- type Peticiones
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArrayJson ¶ added in v1.0.12
* * GetArrayJson * @param key string * @return []et.Json, bool *
func GetDuration ¶ added in v1.0.12
* * GetDuration * @param key string * @return time.Duration, bool *
func GetFloat64 ¶ added in v1.0.12
* * GetFloat64 * @param key string * @return float64, bool *
Types ¶
type Item ¶
type Item struct {
LastUpdate time.Time
Expiration time.Duration
Key string
Value interface{}
// contains filtered or unexported fields
}
func Set ¶
* * Set * @param key string, value interface{}, expiration time.Duration * @return *Item *
func (*Item) ArrayDuration ¶
* * ArrayDuration return the value of item * @return []time.Duration *
func (*Item) ArrayFloat ¶
* * ArrayFloat return the value of item * @return []float64 *
func (*Item) Get ¶
func (i *Item) Get() interface{}
* * Get a value from item * @return interface{} *
type Mem ¶
type Mem struct {
// contains filtered or unexported fields
}
func (*Mem) GetArrayFloat ¶ added in v1.0.12
* * GetArrayFloat * @param key string, def []float64 * @return []float64, bool *
func (*Mem) GetArrayInt ¶ added in v1.0.12
* * GetArrayInt * @param key string, def []int * @return []int, bool *
func (*Mem) GetArrayJson ¶ added in v1.0.12
* * GetArrayJson * @param key string, def []et.Json * @return []et.Json, bool *
func (*Mem) GetArrayStr ¶ added in v1.0.12
* * GetArrayStr * @param key string, def []string * @return []string, bool *
func (*Mem) GetBool ¶ added in v1.0.12
* * GetBool * @param key string, def bool * @return bool, bool *
func (*Mem) GetDuration ¶ added in v1.0.12
* * GetDuration * @param key string, def time.Duration * @return time.Duration, bool *
func (*Mem) GetFloat ¶ added in v1.0.12
* * GetFloat * @param key string, def float64 * @return float64, bool *
func (*Mem) GetInt64 ¶ added in v1.0.12
* * GetInt64 * @param key string, def int * @return int, error *
func (*Mem) GetItem ¶ added in v1.0.12
* * GetItem * @param key string, dest *Item * @return bool, error *
func (*Mem) GetJson ¶ added in v1.0.12
* * GetJson * @param key string, def et.Json * @return et.Json, error *
func (*Mem) GetTime ¶ added in v1.0.12
* * GetTime * @param key string, def time.Time * @return time.Time, bool *
type Peticiones ¶
type Peticiones struct {
Peticiones int
Capacity int /* Capacidad de peticiones del ACS */
TimeWait int /* Tiempo de espera para la siguiente petición */
SizeStack int /* Tamaño de la pila de peticiones */
// contains filtered or unexported fields
}
func NewPeticiones ¶
func NewPeticiones(capacity, timeWait int) *Peticiones
func (*Peticiones) GetConfig ¶
func (c *Peticiones) GetConfig() et.Json
func (*Peticiones) GetPeticiones ¶
func (c *Peticiones) GetPeticiones() int