Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Spring data redis (with lettuce) advantages for creating wrapper library

$
0
0

I am new to Redis and planning to use it as in memory cache. I am using Lettuce 5.2 client for it.

I have multiple applications which will use redis as in memory cache. My idea is to write library using lettuce like wrapper which can be used by multiple application in order to interact with Redis. That library will manage connection pooling, redis failover cases and command execution etc. so that application writer should not worry about all this and just need to use my library.

Now for this library i am confused on below points :

1) Should i use Spring data redis (it also supports lettuce)? If my objective is to create library then first of all, can i use spring data redis ?

2) What all advantage Spring data redis will give me. I have checked documentation https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/#reference

3) If i don't use Spring data redis then I will just use only lettuce and create client, connention pool etc myself.

I am confused whether i should use spring data redis for creating library or not ?

Can you please help me to clear my confusion ?


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>