purnima-jain / redis-serialization-json

Usage of Redis as database with HashKey as uniqueId and Value serialized as JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redis-serialization-json

Usage of Redis as database with unique Keys, customerId as HashKeys & complete Customer object serialized-as-JSON as value.

Sample application for Redis usage as database where:

  • Key is "CUSTOMER_STORE" + customerId
  • HashKey is an attribute of Customer called customerId
  • Value is the entire Customer stored as JSON

Additionally, there is an expiry/TTL set for each Key.

About

Usage of Redis as database with HashKey as uniqueId and Value serialized as JSON


Languages

Language:Java 100.0%