mirror of
https://github.com/hanzoai/beego.git
synced 2026-11-17 13:19:25 +00:00
hanzokv/go v9.22.0 renames its Go package from `redis` to `kv` (import path is unchanged). Follow the dependency and finish the job: the three session backends that speak to our KV store now say "kv" everywhere instead of carrying a vendor name we no longer use. server/web/session/redis -> server/web/session/kv server/web/session/redis_cluster -> server/web/session/kv_cluster server/web/session/redis_sentinel -> server/web/session/kv_sentinel Provider names registered with session.Register, and the matching session.ProviderType constants, move with them: "redis" ProviderRedis -> "kv" ProviderKV "redis_cluster" ProviderRedisCluster -> "kv_cluster" ProviderKVCluster "redis_sentinel" ProviderRedisSentinel -> "kv_sentinel" ProviderKVSentinel Also: drop the kv_cluster import alias (rediss) now that the package identifier no longer collides, rename the redispder package vars to kvpder, rename the SessionRead local map from kv to values so it stops shadowing the imported package, and repoint the stale upstream doc comments (gomodule/redigo, redis/go-redis) at hanzokv/go/v9. Not touched: client/cache/redis still rides gomodule/redigo, a genuinely foreign client, so it keeps its name. The REDIS_ADDR test env var also stays, because client/cache/redis tests read the same variable and splitting it would mean two knobs for one address. This is a breaking change for anyone importing the old paths or naming the old providers in config. Co-authored-by: Hanzo Dev <[email protected]>