Last active
March 30, 2016 20:08
-
-
Save AhmedKamal/9ed703ecb1ead739ef1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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