Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.5 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.5 KB

mtoi

Build Status Coverage Status FOSSA Status

Key-Value structures: KV, Slice, Cache...

Feature

  • Key-Value base storage structure.
  • Non-blocking to write.
  • sync.Map if >= go1.9.

KV(kv.go)

  • Value is single instance.
Put(k string, v interface{})
Get(k string) (v interface{}, ok bool)

Slice(slice.go)

  • Value is go slice structure.
Put(k string, v interface{})
Get(k string) (v []interface{}, ok bool)

Cache(cache.go)

  • Value is single instance.
  • Support expire time.
Put(k string, v interface{}, expire time.Duration)
Get(k string) (v interface{}, ok bool)

Contributing

Welcome to pull requests, report bugs, suggest ideas and discuss mtoi on issues page.

If you like it then you can put a ⭐ on it.

License

MIT

FOSSA Status