Java Code Examples for org.redisson.Redisson#getKeys()
The following examples show how to use
org.redisson.Redisson#getKeys() .
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: RedisIdentityFactoryTestCase.java From jstarcraft-core with Apache License 2.0 | 5 votes |
@Before public void testBefore() { // 注意此处的编解码器 Codec codec = new JsonJacksonCodec(); Config configuration = new Config(); configuration.setCodec(codec); configuration.useSingleServer().setAddress("redis://127.0.0.1:6379"); redisson = (Redisson) Redisson.create(configuration); keys = redisson.getKeys(); keys.flushdb(); }
Example 2
Source File: RedisTransactionManagerTestCase.java From jstarcraft-core with Apache License 2.0 | 5 votes |
@Before public void testBefore() { // 注意此处的编解码器 Codec codec = new JsonJacksonCodec(); Config configuration = new Config(); configuration.setCodec(codec); configuration.useSingleServer().setAddress("redis://127.0.0.1:6379"); redisson = (Redisson) Redisson.create(configuration); keys = redisson.getKeys(); keys.flushdb(); }
Example 3
Source File: RedisEventChannelTestCase.java From jstarcraft-core with Apache License 2.0 | 5 votes |
@Before public void start() { // 注意此处的编解码器 Codec codec = new ByteArrayCodec(); Config configuration = new Config(); configuration.setCodec(codec); configuration.useSingleServer().setAddress("redis://127.0.0.1:6379"); redisson = (Redisson) Redisson.create(configuration); keys = redisson.getKeys(); keys.flushdb(); }