Skip to content

Instantly share code, notes, and snippets.

@AhmedKamal
Last active March 30, 2016 20:08
Show Gist options
  • Save AhmedKamal/9ed703ecb1ead739ef1d to your computer and use it in GitHub Desktop.
Save AhmedKamal/9ed703ecb1ead739ef1d to your computer and use it in GitHub Desktop.
SimpleRedisConnection redisConnection = new SimpleRedisConnection(new RedisClient(new RedisURI(host, port, 2, TimeUnit.SECONDS)));
Person person = Person.createPersonAdam();
redisConnection.cache("People", "Adam", person);
Person retrievedPerson = redisConnection.get("People", "Adam");
redisConnection.clear("People", "Adam");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment