Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The sample code provided does not work #9

Open
santosh-gokul opened this issue Mar 22, 2021 · 3 comments
Open

The sample code provided does not work #9

santosh-gokul opened this issue Mar 22, 2021 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation work in progress

Comments

@santosh-gokul
Copy link

Hey,

The cache.set() doesn't work, due to the reason it it has no support for three parameters. The sample code provided however does that. If that is ttl, may be we may want to use .expire(), please look into it.

@comeuplater comeuplater added bug Something isn't working documentation Improvements or additions to documentation work in progress labels Mar 23, 2021
@demian-sl
Copy link

Same here:
cache.set("TST_KEY", "TST_VAL", 5)
TypeError: set() takes 3 positional arguments but 4 were given

@gshivammsg
Copy link

i used this ===>
await cache.set(access_token, data)
await cache.expire(access_token,30)
here 30 is time in seconds .
This works fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation work in progress
Projects
None yet
Development

No branches or pull requests

5 participants
@demian-sl @santosh-gokul @gshivammsg @comeuplater and others