Skip to main content
Swytch Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Bitmaps, HyperLogLog, Geo, and Scripting

Choose a specialized Redis structure when it directly fits the application task.

TaskStructureReference
Track compact boolean flagsBitmapsBitmap commands
Estimate distinct visitorsHyperLogLogCardinality commands
Find nearby indexed locationsGeospatial sorted-set operationsGeo commands
Read, decide, and update atomicallySSI transactions in application codeReal transactions
Keep existing Redis scripts runningLua scripts or functions, best effortScripting compatibility

HyperLogLog estimates a count; it does not retain an exact set of members.

Lua is not required for transactional application logic in Swytch. With --ssi, commands inside MULTI return their results immediately, so you can make decisions in your application’s language and commit with EXEC. Prefer SSI transactions for new code.

Lua scripts and functions are provided on a best-effort basis for compatibility with existing Redis workloads. Compatibility depends on available Lua libraries and supported commands. Review scripting differences before moving an existing script.

Shared keys retain their topology costs regardless of the structure. Measure the actual operation and data size when sizing the sidecar.