get existing redis client to access rediscala api
See original GitHub issueIs there a way to get the underlying rediscala
client to be able to use the complete set of its API in addition to the convenient API of the caches?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Redis CLI
To launch the program in special modes, you can use several options, including: Simulate a replica and print the replication stream it receives...
Read more >Use the REST API | Redis Documentation Center
Use the cURL HTTP client. cURL is a popular command line tool used to perform HTTP requests, either as individual commands or within...
Read more >Step 4: Connect to the cluster's node - Amazon ElastiCache ...
For instructions on how to connect to an Amazon EC2 instance, see the Amazon EC2 Getting Started Guide. Download and install redis-cli utility...
Read more >Building REST API backed by Redis | by Mohammed Hewedy
Let's use redis-cli to enable the AOF persistence to get up to the last 1 second persistence we talked about in the introduction....
Read more >etaty/rediscala: Non-blocking, Reactive Redis driver ... - GitHub
The idea behind transactions in Rediscala is to start a transaction outside of a redis connection. We use the TransactionBuilder to store call...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
First of all, if there is anything you miss in the play redis, feel free to propose a new feature.
Second, I don’t see your problem since the client you created in
this.client
transitively implementsredis.commands.Sets
. Therefore, just callthis.client.scard("my-key")
and you are done. Note, that this is asynchronous method returning ascala.concurent.Future
, which must be converted into its Java version (CompletionStage
)@KarelCemus : Thanks for the fast and great reply!
I need access to the SortedSet commands in redis to implement a sorted, unique list. And because we are using your plugin for the list and map handling with ease I don’t want to replace it with something like jedis.
Unfortunately it is very hard for me to read scala code and I don’t fully get how to access the RedisClient.
I could create and map the scala-attributes of the client in Java:
But I could not achieve how to send the commands (which are defined in redis.commands.Set?) to the connection. Maybe you have another hint for me?
Thanks and best regards Simon