method

delete_matched

rails latest stable - Class: ActiveSupport::Cache::Store
delete_matched(matcher, options = nil)
public

Deletes all entries with keys matching the pattern.

Options are passed to the underlying cache implementation.

Some implementations may not support this method.

1Note

Not Supported on Memcached.

joshuapinter ยท Aug 7, 2013

Just an FYI, this is not supported on Memcached, so I would avoid it if you're using FileStore and are planning on moving over to Memcached eventually.