{"id":18586,"date":"2021-10-01T21:23:17","date_gmt":"2021-10-01T14:23:17","guid":{"rendered":"https:\/\/huongdanjava.com\/?p=18586"},"modified":"2021-10-01T21:23:44","modified_gmt":"2021-10-01T14:23:44","slug":"working-with-redis-using-redisson","status":"publish","type":"post","link":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html","title":{"rendered":"Working with Redis using Redisson"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/redisson\/redisson\" target=\"_blank\" rel=\"noopener\">Redisson<\/a> is a Java client library for Redis. Using it, you can manipulate, add, delete, edit data, and much more with a Redis server. In this tutorial, I will guide you through the basic operations with Redis using Redisson!<\/p>\n<p>First, I will create a new Maven project:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18588 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/working-with-redis-using-redisson-1.png\" alt=\"\" width=\"692\" height=\"490\" \/><\/p>\n<p>with the Redisson dependency as an example:<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;dependency&gt;\r\n  &lt;groupId&gt;org.redisson&lt;\/groupId&gt;\r\n  &lt;artifactId&gt;redisson&lt;\/artifactId&gt;\r\n  &lt;version&gt;3.16.3&lt;\/version&gt;\r\n&lt;\/dependency&gt;<\/pre>\n<p>Remember to start the Redis server up! You can refer to how to install Redis server using Docker <a href=\"https:\/\/huongdanjava.com\/install-redis-using-docker.html\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p>The RedissonExample class has the following initial content:<\/p>\n<pre class=\"lang:java decode:true \">package com.huongdanjava.redis;\r\n\r\npublic class RedissonExample {\r\n\r\n  public static void main(String[] args) {\r\n\r\n  }\r\n}\r\n<\/pre>\n<p>We will use the RedissonClient object to work with the Redis server and the create() static method of the Redisson class will help us create this new RedissonClient object.<\/p>\n<p>By default, if the Redis server runs locally, you can use the static create() method with no parameters to connect to the Redis server:<\/p>\n<pre class=\"lang:java decode:true \">RedissonClient redissonClient = Redisson.create();<\/pre>\n<p>but if you need to connect to a remote Redis server, we need to configure the information of that remote server. We will use the Config class to do this.<\/p>\n<p>Redisson supports us to connect to a Redis server in many different deployment ways, for example:<\/p>\n<ul>\n<li>Single node<\/li>\n<li>Master with slave nodes<\/li>\n<li>Sentinel nodes<\/li>\n<li>Clustered nodes<\/li>\n<li>Replicated nodes<\/li>\n<\/ul>\n<p>You can choose how to connect using the Config object as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18589 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/working-with-redis-using-redisson-2.png\" alt=\"\" width=\"700\" height=\"544\" \/><\/p>\n<p>In the example of this tutorial, I will use a single server with the following configuration:<\/p>\n<pre class=\"lang:java mark:10-15 decode:true \">package com.huongdanjava.redis;\r\n\r\nimport org.redisson.Redisson;\r\nimport org.redisson.api.RedissonClient;\r\nimport org.redisson.config.Config;\r\n\r\npublic class RedissonExample {\r\n\r\n  public static void main(String[] args) {\r\n    Config config = new Config();\r\n    config.useSingleServer()\r\n      .setAddress(\"redis:\/\/localhost:6379\")\r\n      .setConnectionPoolSize(10)\r\n      .setConnectionMinimumIdleSize(5)\r\n      .setConnectTimeout(30000);\r\n\r\n    RedissonClient redissonClient = Redisson.create(config);\r\n  }\r\n}\r\n<\/pre>\n<p>As you can see, here I also have some more connection-related configurations including the connection pool, connection idle, and connection timeout (in ms). These are the necessary configurations so that we do not have to open and close the connection to the Redis server many times!<\/p>\n<p>Now you can manipulate the Redis server using this RedissonClient object.<\/p>\n<p>For example, <strong>you can save the value and then retrieve this value with the key<\/strong> as follows:<\/p>\n<pre class=\"lang:java decode:true \">redissonClient.getBucket(\"test\").set(\"khanh\");\r\nSystem.out.println(redissonClient.getBucket(\"test\").get());<\/pre>\n<p>We call the getBucket() method to create or retrieve the information to be set. The getBucket() method will return us an RBucket object, this object can hold any object, then we will use the set() method of this RBucket object to set the value or update the value for it!<\/p>\n<p>The following results:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18590 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/working-with-redis-using-redisson-3.png\" alt=\"\" width=\"700\" height=\"625\" \/><\/p>\n<p><strong>You can also save information on a Map object and retrieve this Map object by key as follows<\/strong>:<\/p>\n<pre class=\"lang:java mark:19-24 decode:true \">package com.huongdanjava.redis;\r\n\r\nimport org.redisson.Redisson;\r\nimport org.redisson.api.RedissonClient;\r\nimport org.redisson.config.Config;\r\n\r\npublic class RedissonExample {\r\n\r\n  public static void main(String[] args) {\r\n    Config config = new Config();\r\n    config.useSingleServer()\r\n      .setAddress(\"redis:\/\/localhost:6379\")\r\n      .setConnectionPoolSize(10)\r\n      .setConnectionMinimumIdleSize(5)\r\n      .setConnectTimeout(30000);\r\n\r\n    RedissonClient redissonClient = Redisson.create(config);\r\n\r\n    redissonClient.getMap(\"testMap\").put(\"a\", 1);\r\n    redissonClient.getMap(\"testMap\").put(\"b\", 2);\r\n    redissonClient.getMap(\"testMap\").put(\"c\", 3);\r\n\r\n    System.out.println(redissonClient.getMap(\"testMap\").keySet().toString());\r\n    System.out.println(redissonClient.getMap(\"testMap\").values().toString());\r\n  }\r\n}\r\n<\/pre>\n<p>The getMap() method will return an RMap object, so we can add, update or retrieve the key with its value.<\/p>\n<p>Result:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18591 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/working-with-redis-using-redisson-4.png\" alt=\"\" width=\"700\" height=\"504\" \/><\/p>\n<p><strong>Redis also supports us to save values only for a certain period of time.<\/strong><\/p>\n<p>To do this, for the Map object, you can use the getMapCache() method as follows:<\/p>\n<pre class=\"lang:java mark:20-26 decode:true \">package com.huongdanjava.redis;\r\n\r\nimport java.util.concurrent.TimeUnit;\r\nimport org.redisson.Redisson;\r\nimport org.redisson.api.RedissonClient;\r\nimport org.redisson.config.Config;\r\n\r\npublic class RedissonExample {\r\n\r\n  public static void main(String[] args) throws InterruptedException {\r\n    Config config = new Config();\r\n    config.useSingleServer()\r\n      .setAddress(\"redis:\/\/localhost:6379\")\r\n      .setConnectionPoolSize(10)\r\n      .setConnectionMinimumIdleSize(5)\r\n      .setConnectTimeout(30000);\r\n\r\n    RedissonClient redissonClient = Redisson.create(config);\r\n\r\n    redissonClient.getMapCache(\"testMapCache\").put(\"a\", 1, 2, TimeUnit.SECONDS);\r\n\r\n    System.out.println(redissonClient.getMapCache(\"testMapCache\").keySet().toString());\r\n\r\n    Thread.sleep(3000);\r\n\r\n    System.out.println(\"After 2s: \" + redissonClient.getMapCache(\"testMapCache\").keySet());\r\n  }\r\n}\r\n<\/pre>\n<p>Result:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-18592 aligncenter\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/10\/working-with-redis-using-redisson-5.png\" alt=\"\" width=\"700\" height=\"416\" \/><\/p>\n<p>As you can see, after 2 seconds, the data in the Map has expired.<\/p>\n<p>There&#8217;s a lot more work with Redis that you can do with Redisson too. Depending on your needs, please research more!<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;18586&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;1&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;&quot;,&quot;legend&quot;:&quot;5\\\/5 - (1 vote)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Working with Redis using Redisson&quot;,&quot;width&quot;:&quot;138&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 138px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (1 vote)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Redisson is a Java client library for Redis. Using it, you can manipulate, add, delete, edit data, and much more with a Redis server. In this tutorial, I will guide you through the basic operations with Redis using Redisson! First, I will create a new&hellip; <a href=\"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":18280,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2120],"tags":[],"class_list":["post-18586","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-redis-en","clearfix"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Working with Redis using Redisson - Huong Dan Java<\/title>\n<meta name=\"description\" content=\"In this tutorial, I introduce to you all about Redisson and how to use it to manipulate with Redis server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Working with Redis using Redisson - Huong Dan Java\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, I introduce to you all about Redisson and how to use it to manipulate with Redis server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html\" \/>\n<meta property=\"og:site_name\" content=\"Huong Dan Java\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/nhkhanh2406\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/nhkhanh2406\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-01T14:23:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-01T14:23:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/09\/redis.png\" \/>\n\t<meta property=\"og:image:width\" content=\"308\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Khanh Nguyen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/KhanhNguyenJ\" \/>\n<meta name=\"twitter:site\" content=\"@KhanhNguyenJ\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Khanh Nguyen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html\"},\"author\":{\"name\":\"Khanh Nguyen\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"headline\":\"Working with Redis using Redisson\",\"datePublished\":\"2021-10-01T14:23:17+00:00\",\"dateModified\":\"2021-10-01T14:23:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html\"},\"wordCount\":455,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"image\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/redis.png\",\"articleSection\":[\"Redis\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html\",\"name\":\"Working with Redis using Redisson - Huong Dan Java\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/redis.png\",\"datePublished\":\"2021-10-01T14:23:17+00:00\",\"dateModified\":\"2021-10-01T14:23:44+00:00\",\"description\":\"In this tutorial, I introduce to you all about Redisson and how to use it to manipulate with Redis server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html#primaryimage\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/redis.png\",\"contentUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/redis.png\",\"width\":308,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/working-with-redis-using-redisson.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/huongdanjava.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Working with Redis using Redisson\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#website\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/\",\"name\":\"Huong Dan Java\",\"description\":\"Java development tutorials\",\"publisher\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/huongdanjava.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\",\"name\":\"Khanh Nguyen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"contentUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"width\":1267,\"height\":1517,\"caption\":\"Khanh Nguyen\"},\"logo\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\"},\"description\":\"I love Java and everything related to Java.\",\"sameAs\":[\"https:\\\/\\\/huongdanjava.com\",\"https:\\\/\\\/www.facebook.com\\\/nhkhanh2406\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/KhanhNguyenJ\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Working with Redis using Redisson - Huong Dan Java","description":"In this tutorial, I introduce to you all about Redisson and how to use it to manipulate with Redis server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html","og_locale":"en_US","og_type":"article","og_title":"Working with Redis using Redisson - Huong Dan Java","og_description":"In this tutorial, I introduce to you all about Redisson and how to use it to manipulate with Redis server.","og_url":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html","og_site_name":"Huong Dan Java","article_publisher":"https:\/\/www.facebook.com\/nhkhanh2406","article_author":"https:\/\/www.facebook.com\/nhkhanh2406","article_published_time":"2021-10-01T14:23:17+00:00","article_modified_time":"2021-10-01T14:23:44+00:00","og_image":[{"width":308,"height":260,"url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/09\/redis.png","type":"image\/png"}],"author":"Khanh Nguyen","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/KhanhNguyenJ","twitter_site":"@KhanhNguyenJ","twitter_misc":{"Written by":"Khanh Nguyen","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html#article","isPartOf":{"@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html"},"author":{"name":"Khanh Nguyen","@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"headline":"Working with Redis using Redisson","datePublished":"2021-10-01T14:23:17+00:00","dateModified":"2021-10-01T14:23:44+00:00","mainEntityOfPage":{"@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html"},"wordCount":455,"commentCount":0,"publisher":{"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"image":{"@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html#primaryimage"},"thumbnailUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/09\/redis.png","articleSection":["Redis"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html","url":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html","name":"Working with Redis using Redisson - Huong Dan Java","isPartOf":{"@id":"https:\/\/huongdanjava.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html#primaryimage"},"image":{"@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html#primaryimage"},"thumbnailUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/09\/redis.png","datePublished":"2021-10-01T14:23:17+00:00","dateModified":"2021-10-01T14:23:44+00:00","description":"In this tutorial, I introduce to you all about Redisson and how to use it to manipulate with Redis server.","breadcrumb":{"@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html#primaryimage","url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/09\/redis.png","contentUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/09\/redis.png","width":308,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/huongdanjava.com\/working-with-redis-using-redisson.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/huongdanjava.com\/"},{"@type":"ListItem","position":2,"name":"Working with Redis using Redisson"}]},{"@type":"WebSite","@id":"https:\/\/huongdanjava.com\/#website","url":"https:\/\/huongdanjava.com\/","name":"Huong Dan Java","description":"Java development tutorials","publisher":{"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/huongdanjava.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d","name":"Khanh Nguyen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","contentUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","width":1267,"height":1517,"caption":"Khanh Nguyen"},"logo":{"@id":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg"},"description":"I love Java and everything related to Java.","sameAs":["https:\/\/huongdanjava.com","https:\/\/www.facebook.com\/nhkhanh2406","https:\/\/x.com\/https:\/\/twitter.com\/KhanhNguyenJ"]}]}},"_links":{"self":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/18586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/comments?post=18586"}],"version-history":[{"count":3,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/18586\/revisions"}],"predecessor-version":[{"id":18595,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/18586\/revisions\/18595"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/media\/18280"}],"wp:attachment":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/media?parent=18586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/categories?post=18586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/tags?post=18586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}