Skip to content

Conversation

@ironnicko
Copy link
Contributor

would make sense to have an example here.

would make sense to have an example here.
@jit-ci
Copy link

jit-ci bot commented Oct 11, 2025

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

@ironnicko ironnicko changed the title Example for setting TTL to "HSET Field" docs: example for setting TTL to "HSET Field" Oct 11, 2025
@ironnicko ironnicko changed the title docs: example for setting TTL to "HSET Field" docs(example): setting TTL to "HSET Field" Oct 11, 2025
@ironnicko ironnicko changed the title docs(example): setting TTL to "HSET Field" docs(example): add example for setting TTL to "HSET Field" Oct 11, 2025
PavelPashov

This comment was marked as outdated.

Copy link
Contributor

@PavelPashov PavelPashov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ironnicko, thank you for the contribution. That's a good idea, however, running the examples now results in an error ReplyError: WRONGTYPE Operation against a key holding the wrong kind of value.

Additionally, it would be nice to include a console.log that shows the ttl like the other examples:

console.log(await redis.call("httl", "hfoo", "FIELDS", "1", "bar")); // 10

Copy link
Contributor

@PavelPashov PavelPashov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ironnicko
Copy link
Contributor Author

Looks good

Thanks for the feedback.

@ironnicko ironnicko closed this Oct 13, 2025
@ironnicko ironnicko reopened this Oct 13, 2025
@PavelPashov PavelPashov merged commit 44c2df6 into redis:main Oct 13, 2025
15 checks passed
@github-actions
Copy link

🎉 This PR is included in version 5.8.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

simong added a commit to simong/ioredis that referenced this pull request Nov 3, 2025
* origin/main:
  chore(release): 5.8.2 [skip ci]
  fix: move CLIENT SETINFO commands to connection handshake (redis#2033)
  ci(test): add redis matrix and update docker compose file (redis#2034)
  docs(example): add example for setting TTL to "HSET Field" (redis#2027)
  fix: default IP family selection to 0 (redis#2028)
  chore(release): 5.8.1 [skip ci]
  test: add scenario tests v5 (redis#2020)
  fix(ssubscribe): re-subscribe sharded pubsub channels individually (redis#2021)
  chore(release): 5.8.0 [skip ci]
  feat: support client setinfo (redis#2011)
  feat(stream): Add XDELEX command (redis#2003)
  Add stale issue management workflow (redis#2018)
  feat: implement proper hpexpire command signatures and tests (redis#2006)
  feat: add more xtrim method overloads and tests (redis#2010)
  test(cluster): fix and add cluster tests in CI (redis#2017)
  Force slots refresh on MOVED error when using ssubscribe (redis#2013)
  fix(ssubscribe): re-subscribe sharded pubsub channels individually on ready (redis#2012)
  chore(release): 5.7.0 [skip ci]
  fix: xread example for TypeScript (redis#1872)
  feat: Implement hexpire for redis#1898 (redis#1918)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants