我做Spring Redis
,我把鑰匙作爲春Redis的哈希運算SCAN
redistemplate.opsForHash().put("Customer", Customer.class, List<Customers>)
我想從List<>
搜索,
ScanOptions options = ScanOptions.scanOptions().match(pattern).count(1).build();
Cursor<Entry<Object, Object>> keys = redistemplate.opsForHash().scan("Customer", options);
也不能正常工作。請幫忙!!
可以通過使用ScanOptions.NONE – Persia
ScanOptions.NONE作品,但一切都取不匹配的模式獲取數據。 – ashK
你的模式是什麼 – Persia