Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Next Level Redis With Spring Christoph Strobl @stroblchristoph
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 3 Remote Directory Server KeyValue Store Cache Queues Analytics Geo Indexing Session Store Distributed Locks Strings Hashes Lists Sets Sorted Sets HyperLogLog Transactions Pub/Sub Scripting
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 5 V A L U E SET GET K E Y STRLEN APPEND GETSET GETRANGE SETRANGE 3 . 1 4 1 INCR INCRBY DECR DECRBY INCRBYFLOAT DECRBYFLOAT SETNX Strings
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Arya 6 S T A R K LPUSH LPOP RPUSH RPOP LLEN LSET LGET LINSERT LRANGE LREM Lists Jon Bran
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 7 Sets L A N N I S T E R Tyrion Jaime Cersei SADD SPOP SREM SCARD SMEMBERS SISMEMBER
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 8 Hashes D A E N E R Y S firstname lastname gender daenerys targaryen female HSET HGET HMSET HMGET HVALS HKEYS HDEL HLEN HGETALL
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 9 multi/exec MULTI EXEC SET key value GET key QUEUED QUEUED [OK, value] DISCARD OK
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 10 Single Node / HA / Cluster
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 14 Slots: 0 - 8192 Slots: 8993 - 16384
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 17 class Person { String id; String firstname; String lastname; Address address; } SET {person}:123 { "id":123, "firstname":"jon", "lastname":"snow", "address": { "country":"the north" } } HMSET {person}:123 _class org.example.Person id 123 firstname jon lastname snow address.country the north GET {person}:123 HGETALL {person}:123 HGET {person}:123 id lastname HSET {person}:123 lastname doe HEXISTS {person}:123 age ...
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 18 DEMO Object Hash Mapping
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 22 DEMO Redis Repositories
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 23 Expire Commands Custom Conversions SpEL based indexing References
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 24 CC BY 2.0 https://www.flickr.com/photos/crystalflickr/2317183342
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 25 Reactive Data Access Geo Indexes
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Related Sessions • Wed, 3rd, August, 2016 • 2:00 pm – John Blum, Mark Paluch Outlook: Spring Data Cassandra 1.5 " • Thu, 4th, August, 2016 • 9:00 am – John Blum, Luke Shannon Spring Data and In-Memory Data Management in Action " • Thu, 4th, August, 2016 • 11:45 am – Viktor Gamov, Neil Stevenson Spring Data Hazelcast: Fluently Accessing Distributed Repositories 28
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Learn More. Stay Connected. Follow us @SpringData @springcentral spring.io/blog @pivotal pivotal.io/blog @pivotalcf http://engineering.pivotal.io Talk to us spring-projects/spring-data
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Safe Harbor Statement • The following is intended to outline the general direction of Pivotal's offerings. It is intended for information purposes only and may not be incorporated into any contract. Any information regarding pre-release of Pivotal offerings, future updates or other planned modifications is subject to ongoing evaluation by Pivotal and is subject to change. This information is provided without warranty or any kind, express or implied, and is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions regarding Pivotal's offerings. These purchasing decisions should only be based on features currently available. The development, release, and timing of any features or functionality described for Pivotal's offerings in this presentation remain at the sole discretion of Pivotal. Pivotal has no obligation to update forward looking information in this presentation. 30