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

Spring Using Redis @Cacheable

$
0
0

Can any one suggest a Redis (NoSQL DB) example for a Collection type? Generally we use the following (in Spring):

@Cacheable(value = "PRODUCT", key = "#productId" ) 
public Map<String,Object> findProduct(String productId, String productName)
 { return map; } 

which stores the key and value as String, but I need for:

public Map<RestaurantId,Set<Order>>find(String RestaurantId, String productName){ return map; }

Viewing all articles
Browse latest Browse all 2222

Trending Articles



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