collection = redisson.getSortedSet(objectName, codec); } else if (RScoredSortedSet.class.isAssignableFrom(objectClass)) { collection = redisson.getScoredSortedSet(objectName, codec); } else if (RLexSortedSet.class.isAssignableFrom(objectClass)) { collection = (Iterable<VIn>) redisson.getLexSortedSet(objectName);
collection = redisson.getSortedSet(objectName, codec); } else if (RScoredSortedSet.class.isAssignableFrom(objectClass)) { collection = redisson.getScoredSortedSet(objectName, codec); } else if (RLexSortedSet.class.isAssignableFrom(objectClass)) { collection = (Iterable<VIn>) redisson.getLexSortedSet(objectName);
@Override protected RScoredSortedSet<V> initSyncCollection( final RedissonClient client, final String setName, final Codec codec) { return client.getScoredSortedSet(setName, codec); } }
/** * 获取ScoredSortedSett对象 * @param objectName * @param <V> * @return */ public static <V> RScoredSortedSet<V> getScoredSorteSet(String objectName) { return redissonClient.getScoredSortedSet(objectName); }
public RedisCache(RedisCacheManager redisCacheManager, String keyPrefix, String principalIdFieldName, long ttl) { this.redisCacheManager = redisCacheManager; this.cacheKeyPrefix = keyPrefix; this.principalIdFieldName = principalIdFieldName; this.ttl = ttl; this.cacheKeys = redisCacheManager.getRedissonClient().getScoredSortedSet(this.cacheKeyPrefix); }
public RedisSessionDAO(RedisCacheManager redisCacheManager) { this.redisCacheManager = redisCacheManager; this.sessionKeys = this.redisCacheManager.getRedissonClient().getScoredSortedSet(sessionKeyPrefix); this.clearCache = new ClearCache(this); this.clearCache.init(); }
collection = redisson.getSortedSet(objectName, codec); } else if (RScoredSortedSet.class.isAssignableFrom(objectClass)) { collection = redisson.getScoredSortedSet(objectName, codec); } else if (RLexSortedSet.class.isAssignableFrom(objectClass)) { collection = (Iterable<VIn>) redisson.getLexSortedSet(objectName);
public static RScoredSortedSet<GeoWaveMetadata> getMetadataSet( final RedissonClient client, final Compression compression, final String namespace, final MetadataType metadataType, final boolean visibilityEnabled) { // stats also store a timestamp because stats can be the exact same but // need to still be unique (consider multiple count statistics that are // exactly the same count, but need to be merged) return client.getScoredSortedSet( namespace + "_" + metadataType.toString(), compression.getCodec( MetadataType.STATS.equals(metadataType) ? visibilityEnabled ? GeoWaveMetadataWithTimestampCodec.SINGLETON_WITH_VISIBILITY : GeoWaveMetadataWithTimestampCodec.SINGLETON_WITHOUT_VISIBILITY : visibilityEnabled ? GeoWaveMetadataCodec.SINGLETON_WITH_VISIBILITY : GeoWaveMetadataCodec.SINGLETON_WITHOUT_VISIBILITY)); }
RScoredSortedSet<String> set = redisson.getScoredSortedSet("mySortedSet"); set.add(10, "1"); set.add(20, "2");