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

Redis cache is not setting expire #2505

Closed
kikar opened this issue Jul 12, 2018 · 4 comments
Closed

Redis cache is not setting expire #2505

kikar opened this issue Jul 12, 2018 · 4 comments

Comments

@kikar
Copy link
Contributor

kikar commented Jul 12, 2018

Issue type:

[X] bug report

Database system/driver:

[X] mysql / mariadb

TypeORM version:

[X] latest

Steps to reproduce or a small repository showing the problem:

Configured my db with:

{
	"type": "redis",
    "duration": 5000,
    "options": {
		"host": "localhost",
		"port": 6379,
		"prefix": "dev-"
    }
}

And I'm using selectQueryBuilder with .cache('some-key', 5000)
The cache and the expiration seem to work correctly, but the Redis key has no expiry set.
Is this intended?

@kikar
Copy link
Contributor Author

kikar commented Jul 12, 2018

I opened a pull request to enable this: #2507

@pleerock
Copy link
Member

Thanks going to release it in a next version

@kikar
Copy link
Contributor Author

kikar commented Jul 16, 2018

Thanks @pleerock.
Any ETA on the next version? Is it gonna be 0.2.8?

@pleerock
Copy link
Member

yes it is

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

2 participants