apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: Cache

Source Location: /PHP_CodeSniffer-3.1.1/src/Util/Cache.php

Class Overview


Function for caching between runs.


Author(s):

Copyright:

  • 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)

Methods


Inherited Variables

Inherited Methods


Class Details

[line 17]
Function for caching between runs.


[ Top ]


Method Detail

get   [line 281]

mixed get( [string $key = null])

Retrieves a single entry from the cache.
  • Access: public

Parameters:

string   $key   —  The key of the data to get. If NULL, everything in the cache is returned.

[ Top ]

getSize   [line 321]

int getSize( )

Retrieves the number of cache entries.
  • Access: public

[ Top ]

load   [line 43]

void load( Ruleset $ruleset, Config $config)

Loads existing cache data for the run, if any.
  • Access: public

Parameters:

\PHP_CodeSniffer\Ruleset   $ruleset   —  The ruleset used for the run.
\PHP_CodeSniffer\Config   $config   —  The config data for the run.

[ Top ]

save   [line 266]

void save( )

Saves the current cache to the filesystem.
  • Access: public

[ Top ]

set   [line 305]

void set( string $key, mixed $value)

Retrieves a single entry from the cache.
  • Access: public

Parameters:

string   $key   —  The key of the data to set. If NULL, sets the entire cache.
mixed   $value   —  The value to set.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:27:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.