src/Mvc/Listener/Limit/Storage/Db.php
public function clean()
    {
        $this->assertReady();
        
        $sql = sprintf("DELETE FROM %s WHERE %s < NOW() - INTERVAL %d SECOND",
            $this->dbAdapter->platform->quoteIdentifier($this->table),
            $this->dbAdapter->platform->quoteIdentifier($this->timestampColumn),
            $this->getCleanInterval()->toSeconds());
        
        $this->dbAdapter->query($sql, DbAdapter::QUERY_MODE_EXECUTE);
    }
public function clean()
    {
        $this->assertReady();
        
        $sql = sprintf("DELETE FROM %s WHERE %s < NOW() - INTERVAL %d SECOND",
            $this->dbAdapter->platform->quoteIdentifier($this->table),
            $this->dbAdapter->platform->quoteIdentifier($this->timestampColumn),
            $this->getCleanInterval()->toSeconds());
        
        $this->dbAdapter->query($sql, DbAdapter::QUERY_MODE_EXECUTE);
    }
public function clean ( ) { $ this -> assertReady ( ) ; $ sql = sprintf ( "DELETE FROM %s WHERE %s < NOW() - INTERVAL %d SECOND" , $ this -> dbAdapter -> platform -> quoteIdentifier ( $ this -> table ) , $ this -> dbAdapter -> platform -> quoteIdentifier ( $ this -> timestampColumn ) , $ this -> getCleanInterval ( ) -> toSeconds ( ) ) ; $ this -> dbAdapter -> query ( $ sql , DbAdapter :: QUERY_MODE_EXECUTE ) ; }
Remove expired records from database

@see \Spork\Mvc\Listener\Limit\Storage\StorageInterface::clean()
Remove expired records from database