Skip to content

Choosing a Cleaning Method #8

Open

Description

@SoftStoneDevelop

Sometimes you can set up a routine that, say, every 20 seconds (as it is now), checks for and clears expired cache values and lock keys that haven’t been used for a long time (2 minutes right now). But there are times when you can’t allow this to run at random intervals. In that case, the cache doesn’t have any Start/Stop methods; it must expose a ‘ClearExpiredCache()’ method (which already exists but is currently marked as ‘internal’) that triggers the cleanup—and it’s up to the user who’s decided to manage this on their own to determine when to call it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions