GitHub user jairhenrique added a comment to the discussion: [python] How to 
define redis operator ttl

@Xuanwo I had a similar error

```bash
thread '<unnamed>' panicked at 
/Users/runner/work/opendal/opendal/core/src/services/redis/backend.rs:200:14:
config deserialize must succeed: Error("invalid type: string \"30\", expected 
struct Duration")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---------------------------------------------------------------------------
PanicException                            Traceback (most recent call last)
Cell In[2], line 1
----> 1 op = opendal.Operator('redis', host='localhost:6379', default_ttl='30')

PanicException: config deserialize must succeed: Error("invalid type: string 
\"30\", expected struct Duration")
```

GitHub link: 
https://github.com/apache/opendal/discussions/4931#discussioncomment-10161111

----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscr...@opendal.apache.org

Reply via email to