Spork Code Libraries

StorageInterface

Provides storage for Limit

Summary

Constants

Methods

increment()

increment(string  $ip, string  $type) 

Increment the count for a limit type of a specific IP address

Parameters

string $ip

IP address

string $type

Name of limit type

check()

check(string  $ip, \Spork\Mvc\Listener\Limit\Limit  $limit) : boolean

Checks if an IP has reached a limit

Parameters

string $ip

IP address

\Spork\Mvc\Listener\Limit\Limit $limit

Returns

boolean

clean()

clean() 

Cleans expired events from storage