Skip to content

[Question] Redis - Deleting Cached Items Once Expired #142

Description

@benbelmour

I have my caching set up as such which works as expected:

$stack->push(
    new CacheMiddleware(
        new PrivateCacheStrategy(
            new LaravelCacheStorage(
                \Illuminate\Support\Facades\Cache::store('redis')
            )
        )
    ),
    'cache'
);

The one issue is, the items aren't being deleted from Redis.

The cache isn't being hit and requests are being sent once the TTL has expired which is expected, but as mentioned above the items aren't actually being deleted from Redis.

How would one set the items to delete automatically?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions