Relative Content

Tag Archive for springredis

How to use custom date range as redis key?

I am creating a project where I am using spring-redis. I have an api end point which fetches data based on start and end date. I am required to store the data on redis. But don’t know what would be the key?
I did some research and found that key can be customised as “data:+startDate+_+endDate”.
Now let’s say first request made with startDate: 01-01-2025, endDate: 01-03-2025.
This will be fetched and stored in redis.

How to use custom date range as redis key?

I am creating a project where I am using spring-redis. I have an api end point which fetches data based on start and end date. I am required to store the data on redis. But don’t know what would be the key?
I did some research and found that key can be customised as “data:+startDate+_+endDate”.
Now let’s say first request made with startDate: 01-01-2025, endDate: 01-03-2025.
This will be fetched and stored in redis.

How to use custom date range as redis key?

I am creating a project where I am using spring-redis. I have an api end point which fetches data based on start and end date. I am required to store the data on redis. But don’t know what would be the key?
I did some research and found that key can be customised as “data:+startDate+_+endDate”.
Now let’s say first request made with startDate: 01-01-2025, endDate: 01-03-2025.
This will be fetched and stored in redis.

How to use custom date range as redis key?

I am creating a project where I am using spring-redis. I have an api end point which fetches data based on start and end date. I am required to store the data on redis. But don’t know what would be the key?
I did some research and found that key can be customised as “data:+startDate+_+endDate”.
Now let’s say first request made with startDate: 01-01-2025, endDate: 01-03-2025.
This will be fetched and stored in redis.

How to use custom date range as redis key?

I am creating a project where I am using spring-redis. I have an api end point which fetches data based on start and end date. I am required to store the data on redis. But don’t know what would be the key?
I did some research and found that key can be customised as “data:+startDate+_+endDate”.
Now let’s say first request made with startDate: 01-01-2025, endDate: 01-03-2025.
This will be fetched and stored in redis.