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

TTL requires two properties to be specified #32

Open
xtrmstep opened this issue Jun 8, 2020 · 0 comments
Open

TTL requires two properties to be specified #32

xtrmstep opened this issue Jun 8, 2020 · 0 comments

Comments

@xtrmstep
Copy link

xtrmstep commented Jun 8, 2020

Hi,

On the version 5.1.2
The working example which inserts entries with TTL 30 seconds is as follows:

@store(type = 'redis',
  cluster.mode = "false", nodes = "${REDIS_HOST}",
  ttl.seconds = "30",
  ttl.on.update = "true")
@primaryKey('field' )
define table table_name (...);

If I use only ttl.seconds property it inserts entries with TTL = -1 (without TTL).

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant