mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Clarifying comments for #delete spec method
This commit is contained in:
parent
b29a7a89de
commit
64fe10f64e
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue