MyGit

v0.3.0

nalgeon/redka

版本发布时间: 2024-04-26 15:24:10

nalgeon/redka最新发布版本:v0.5.2(2024-06-29 03:06:45)

Redka aims to reimplement the good parts of Redis with SQLite, while remaining compatible with the Redis API. This release adds support for sorted set commands.

All commands are available via the Redis wire protocol (RESP) and the Go API.

InstallationUsageRoadmap

Special thanks to @behnambm for testing the EXPIREAT command and @Gelma for fixing some typos.

Sorted sets

Redka supports the following sorted set related commands:

⚠️ Breaking changes

Until Redka reaches 1.0, I may introduce breaking changes with each release. Sorry for that.

Removed MSTENX command. I never quite understood the use case for MSETNX, so I searched the Redis repo issues and StackOverflow. I didn't find a single real-world scenario for using this command, so I decided to remove it.

rkey.DB / rkey.Tx interface changes:

- Expire(key string, ttl time.Duration) (bool, error)
+ Expire(key string, ttl time.Duration) error

- ExpireAt(key string, at time.Time) (bool, error)
+ ExpireAt(key string, at time.Time) error

- Persist(key string) (bool, error)
+ Persist(key string) error

rstring.DB / rstring.Tx interface changes:

- GetSet(key string, value any, ttl time.Duration) (core.Value, error)
- SetExists(key string, value any, ttl time.Duration) (bool, error)
- SetManyNX(items map[string]any) (bool, error)
- SetNotExists(key string, value any, ttl time.Duration) (bool, error)
+ SetWith(key string, value any) rstring.SetCmd

相关地址:原始地址 下载(tar) 下载(zip)

1、 checksums.txt 177B

2、 redka_darwin_amd64.zip 2.01MB

3、 redka_linux_amd64.zip 2.08MB

查看:2024-04-26发行的版本