Expand description
Prefix bulk ops + diagnostics (copy-prefix /
delete-prefix / digest / diff / inspect).
Prefix bulk ops + diagnostics:
copy-prefix / delete-prefix (token-bucket rate limit,
--dry-run), digest, diff, inspect.
Structs§
- Rate
Limiter - Token bucket:
rateops/second, starting EMPTY (strict pacing — a full-bucket start lets a small job burn its whole burst unthrottled, defeating the point of--ratefor short sweeps).rate == 0= unlimited.
Functions§
- run_
copy_ prefix copy-prefix: SCAN src prefix, re-key under dst prefix via read+rebuild frames (the server has no COPY verb; TTL carried as absolute PEXPIREAT). Rate-limited per source key.- run_
delete_ prefix delete-prefix: SCAN + UNLINK, rate-limited. Returns deleted count.- run_
diff diff: compare prefixes across two servers. Returns mismatching prefixes.- run_
digest digest <prefix>→ (count, hex).- run_
inspect inspect <prefix>: sample keys, type distribution, sizes.