tedious / Stash

The place to keep your cache.
http://www.stashphp.com
BSD 3-Clause "New" or "Revised" License
961 stars 133 forks source link

Added an ability to set a default invalidation method for the pool #407

Closed Finesse closed 2 years ago

Finesse commented 2 years ago

The PR adds a new method Pool::setInvalidationMethod that sets a default invalidation method for the Pool object. After calling this method all Item objects that will be created by the pool will use the pool's default invalidation method.

Resolves #96

tedivm commented 2 years ago

Can you rebase this against main so that the test suite will run?

Finesse commented 2 years ago

@tedivm I've amended the GitHub Actions configuration to make the the tests run in pull requests. Now you need to allow the tests to run (there should be a button on this page).