Clarifying comments for #delete spec method

This commit is contained in:
Aaron Suggs 2015-05-22 13:48:32 -04:00
parent b29a7a89de
commit 64fe10f64e

View file

@ -1,6 +1,9 @@
require_relative '../spec_helper'
describe Rack::Attack::Cache do
# A convenience method for deleting a key from cache.
# Slightly differnet than @cache.delete, which adds a prefix.
def delete(key)
if @cache.store.respond_to?(:delete)
@cache.store.delete(key)