<dependency> <groupId>com.github.etaty</groupId> <artifactId>scredis_2.12</artifactId> <version>2.0.0</version> </dependency> groovy dependencies { implementation 'com.github.etaty:scredis_2.12:2.0.0' } import scredis.Redis; import scredis.exceptions.RedisException; try { } catch (RedisException e) { } try { redis.publish("channel", "Hello, Redis!"); redis.subscribe("channel", message -> { }); } catch (RedisException e) { }


上一篇:
下一篇:
切换中文