Skip to content

Releases: jaavier/sider

Incr/Decr/GetCounter

14 Nov 01:03
5a6efc0
Compare
Choose a tag to compare
Incr/Decr/GetCounter Pre-release
Pre-release

Incr

func Incr(key string) int64

Decr

func Decr(key string) int64

GetCounter

func GetCounter(key string) int64

Delete Item from list by index or content

05 Nov 08:26
3a7aaed
Compare
Choose a tag to compare

# New Features

  • Delete Item by index: You can use it in combination with IndexOf function.
func DeleteItemByIndex(listName string, index int) bool 
  • Delete item by content: Content must match exactly the content in your list
func DeleteItemByContent(listName string, item string) bool 

Delete Keys and Lists

05 Nov 07:32
8e289a6
Compare
Choose a tag to compare

New Features

  • Delete Key
func DeleteKey(key string) error
  • Delete List
func DeleteList(listName string) error 

V1.2.0

04 Nov 23:48
b208ea5
Compare
Choose a tag to compare

Manage lists

  • GetList: Load list by list name
  • LPush: Push element in list at left
  • RPush: Push element in list at right
  • Pop: Pop element from list at left or right
  • LLen: Get length of list
  • IndexOf: Get index of element in list
  • ReplaceList: Replace list by index
  • CountList: Get length of list

Manage keys:

  • Set: Add a new key
  • Get: Read value of key

More features

  • Expire keys and lists
  • Persistence on disk