question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create keys with expires

See original GitHub issue

Hi,

Is it poissible to send this Redis command with ioredis in just one function call?

set key 100 ex 10

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

44reactions
luincommented, Sep 25, 2015

Yep! redis.set('key', 100, 'ex', 10)

20reactions
dirkbonhommecommented, Mar 19, 2018

@arankhem no, you’ll have to do it with 2 commands:

  • hmset(key, data)
  • expire(key, ttl)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I create an SSH Key with an expiration date?
1) Login to Automation Web Admin. 2) Click Resources, Keys and Scripts, Create SSH Client Keys 3) Notice there is no field for...
Read more >
Adding expiration date to SSH key - Super User
I have an SSH key generated using Putty. The commen section has the creation date "rsa-key-20201015" How can I add an expiration date...
Read more >
How To Expire Keys in Redis - DigitalOcean
This tutorial explains how to set keys to expire, check the time remaining until a key's expiration, and cancel a key's expiration setting....
Read more >
EXPIRE - Redis
Keys with an expire. Normally Redis keys are created without an associated time to live. The key will simply live forever, unless it...
Read more >
How to generate an expired key with gpg?
You can set an expiration timestamp (in UTC) by typing something like “20220623T223000” for June 23rd, 2022, 22:30:00 UTC.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found