小象學(xué)院 Java數(shù)據(jù)結(jié)構(gòu)與算法
ic List<Object> getHashObjectsByKeys(Collection<String> keySet) {
? ? ? ?try {
? ? ? ? ? ?return redisTemplates.executePipelined(new SessionCallback<Object>() {
? ? ? ? ? ? ? ?@Override
? ? ? ? ? ? ? ?public <K, V> Map execute(RedisOperations<K, V> operations) throws DataAccessException {
? ? ? ? ? ? ? ? ? ?HashOperations hashOperations = operations.opsForHash();
? ? ? ? ? ? ? ? ? ?for (String key : keySet) {
? ? ? ? ? ? ? ? ? ? ? ?hashOperations.entries(key);
? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ? ?return null;
? ? ? ? ? ? ? ?}
標簽: