Comments (2)
connection.pfadd(
&my_key[..],
&my_value[..],
)
should just work, as we already have ToRedisArgs
for &str
. But because it is generic &String
does not coerce to &str
here.
See https://github.com/mitsuhiko/redis-rs/blob/dfa47519578e19389873dbbe57f2cbf8dfc9a79c/src/types.rs#L497
The following would be necessary to support &String
without any more user help:
impl<'a> ToRedisArgs for &'a String {
fn to_redis_args(&self) -> Vec<Vec<u8>> {
vec![self.as_bytes().to_vec()]
}
}
@mitsuhiko: What do you think?
from redis-rs.
Sounds like a reasonable thing to add.
from redis-rs.
Related Issues (20)
- Redis sentinel 'could not find `aio` in the crate root' error HOT 2
- Redis 0.23.1 dont compile when used for creating wasm filter the Proxy_wasm sdk: HOT 5
- EXPIRE/PEXPIRE - There should also be an option to specify "NX", "XX", etc. HOT 5
- Determine key type HOT 3
- Password authentication fails, succeeds with redis-cli HOT 7
- Missing blocking commands for Redis Sorted set HOT 2
- where is the issue of Interrupted system call when consume stream from redis
- TypeError: "Bulk response of wrong dimension" HOT 1
- Sharing connection with AWS Lambda HOT 5
- Poll for PubSub & Push Management HOT 1
- How to RESTORE the value by DUMP command HOT 2
- Possibly incorrect command ordering for XREADGROUP
- Async PubSub subscription to multiple channels doesn't work HOT 2
- Version 0.25 checklist HOT 1
- Error handling results of con.keys("meta_data:*") command HOT 1
- Pubsub util for rediscluster with async connection in Rust HOT 1
- Slow Redis client after build with release profile under qemu
- Setting and getting raw bytes HOT 4
- Does Client struct support TLS? HOT 4
- StreamReadReply silently discards data HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-rs.