Java Code Examples for org.redisson.api.RBucket#delete()
The following examples show how to use
org.redisson.api.RBucket#delete() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractMatch.java From Almost-Famous with MIT License | 6 votes |
@Override public void update(int sid, MatchEnum matchEnum) { Session session = LinkMgr.getSession(sid); if (null == session) return; String match_queue_by_role_key = KeyPrefix.BattleRedisPrefix.MATCH_QUEUE_BY_ROLE + session.getRid(); RBucket<Actor> bucket = redissonClient.getBucket(match_queue_by_role_key); Actor actor = bucket.get(); if (null == actor) return; if (actor.getBattleMode() == BattleModeEnum.RANK) { RankMatchMgr rankMatchMgr = SpringContextUtils.getBean("rankMatchMgr", RankMatchMgr.class); rankMatchMgr.remove(actor, matchEnum); } else if (actor.getBattleMode() == BattleModeEnum.LEISURE) { LeisureMatchMgr leisureMatchMgr = SpringContextUtils.getBean("leisureMatchMgr", LeisureMatchMgr.class); leisureMatchMgr.remove(actor, matchEnum); } bucket.delete(); }
Example 2
Source File: RedisCache.java From t-io with Apache License 2.0 | 5 votes |
@Override public void remove(String key) { if (StrUtil.isBlank(key)) { return; } RBucket<Serializable> bucket = getBucket(key); bucket.delete(); }
Example 3
Source File: VerifyImageUtil.java From kk-anti-reptile with Apache License 2.0 | 4 votes |
public void deleteVerifyCodeFromRedis(String verifyId) { RBucket<String> rBucket = redissonClient.getBucket(VERIFY_CODE_KEY + verifyId); rBucket.delete(); }
Example 4
Source File: RedisCache.java From gcp-token-broker with Apache License 2.0 | 4 votes |
public void delete(String key) { RBucket<byte[]> bucket = getClient().getBucket(key, ByteArrayCodec.INSTANCE); bucket.delete(); }