Comments (2)
This works for me:
#[test]
fn test_dump() {
let ctx = TestContext::new();
let mut con = ctx.connection();
redis::cmd("SET").arg("foo").arg(42).execute(&mut con);
let res: Vec<u8> = redis::cmd("DUMP").arg("foo").query(&mut con).unwrap();
let _: () = redis::cmd("RESTORE")
.arg("var")
.arg(0)
.arg(res)
.query(&mut con)
.unwrap();
assert_eq!(con.get_del("var"), Ok(42usize));
}
Is this sufficient for your usecase? If not, can you share the failing code?
from redis-rs.
@nihohit Thanks! it work! I make a mistake in other code
from redis-rs.
Related Issues (20)
- Cannot use set or publish on Redis Async HOT 4
- Async Cluster: Connection is created on each request HOT 6
- Opt-out client set info when creating new connection HOT 4
- execute config get databases error HOT 2
- Redis deletion is slow or some weird caching is enabled HOT 8
- redis execute `rpop` command got block HOT 10
- Backwards incompatible changes to consider HOT 14
- Unable to reuse a `SetOptions` instance after first command HOT 1
- Breaking Change HOT 10
- Async pubsub subscription misses messages HOT 3
- pubsub subscription with channel(2) but get data when channel full HOT 4
- How to SUBSCRIBE using ConnectionManger HOT 4
- blpop ResponseError: timeout is not an integer or out of range HOT 5
- Script object from hash
- If I want to decode `Value::Data` myself , where Can I find the document. HOT 3
- Bug: ResponseError: Parse error at 1 Unexpected `84` Unexpected `72` HOT 9
- Bug with multiplexed async connections in combination with pipeline (redis::pipe)? HOT 4
- Better understand timeouts HOT 2
- test issue HOT 1
- RESP 3 push model requires polling 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.