Q1. What are the Redis data structures and what is each used for?
Redis exposes several core data types, each with tailored commands. - Strings: counters, cached serialized objects and rate limiters using INCR and SETEX. - Hashes: objec...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (13 available).
Redis exposes several core data types, each with tailored commands. - Strings: counters, cached serialized objects and rate limiters using INCR and SETEX. - Hashes: objec...
Redis offers two persistence mechanisms. RDB takes point-in-time snapshots at configured intervals, for example save 900 1 snapshots after 900 seconds if at least one key...
You set a time to live with EXPIRE, SETEX or PEXPIRE. Redis removes expired keys lazily on access and also runs a background sampling cycle that actively deletes expired ...
Strategies: - Cache-aside (lazy loading): app checks cache, on miss reads DB and populates. Most common. - Read-through: cache library fetches on miss. - Write-through: w...
In cache-aside the application checks the cache first. On a miss it reads from the database, writes the value into the cache with a TTL, and returns it. On writes, the co...
A common implementation is SET key value NX PX ttl. NX sets the key only if it does not exist, and PX gives the lock an expiry so a crashed holder cannot deadlock the sys...
Pub/Sub is fire-and-forget messaging. Publishers send to a channel and subscribers receive in real time, but messages are not stored. An offline subscriber misses them, a...
Redis Cluster shards data across nodes using 16384 hash slots. Each key maps to a slot via CRC16(key) mod 16384, and slots are assigned to masters. Clients may query any ...
A sorted set stores unique members, each with a floating-point score, kept ordered by score. Operations are O(log N), and you can query by rank or by score range. ```sh Z...
Eviction decides what to remove when the cache is full or memory is constrained: - LRU (least recently used): evicts the item not accessed for the longest time. A solid d...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.