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

Exposes LockingCache configuration to adjust ttl and expire policy #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rochoa
Copy link

@rochoa rochoa commented Aug 17, 2015

LockingCache now accepts deleteOnHit option to delete objects when
they are requested even if they were set with a ttl/timeout > 0.

MapnikSource now accepts configuring ttl and timeout/ttl for the
internal locking cache so it's possible to combine it with
metatiling in a more efficient manner.

Now it's possible to use metatile, use a ttl>0 and remove on hit, so
cached objects from metatile will be removed after ttl but objects
already requested are removed as they get a hit.

LockingCache now accepts deleteOnHit option to delete objects when
they are requested even if they were set with a ttl/timeout > 0.

MapnikSource now accepts configuring ttl and timeout/ttl for the
internal locking cache so it's possible to combine it with
metatiling in a more efficient manner.

Now it's possible to use metatile, use a ttl>0 and remove on hit, so
cached objects from metatile will be removed after ttl but objects
already requested are removed as they get a hit.
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

Successfully merging this pull request may close these issues.

1 participant