Skip to content

WindomZ/mtoi

Repository files navigation

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

About

📝 Key-Value structures: KV, Slice, Cache

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages