PHP 클래스 Gilbitron\Util\SimpleCache

By Gilbert Pellegrom http://dev7studios.com Free to use and abuse under the MIT license. http://www.opensource.org/licenses/mit-license.php
파일 보기 프로젝트 열기: gilbitron/php-simplecache 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$cache_extension Cache file extension
$cache_path Path to cache folder (with trailing /)
$cache_time Length of time to cache a file (in seconds)

공개 메소드들

메소드 설명
do_curl ( $url ) Helper function for retrieving data from url
get_cache ( $label )
get_data ( $label, $url ) This is just a functionality wrapper function
is_cached ( $label )
set_cache ( $label, $data )

비공개 메소드들

메소드 설명
safe_filename ( $filename ) Helper function to validate filenames

메소드 상세

do_curl() 공개 메소드

Helper function for retrieving data from url
public do_curl ( $url )

get_cache() 공개 메소드

public get_cache ( $label )

get_data() 공개 메소드

This is just a functionality wrapper function
public get_data ( $label, $url )

is_cached() 공개 메소드

public is_cached ( $label )

set_cache() 공개 메소드

public set_cache ( $label, $data )

프로퍼티 상세

$cache_extension 공개적으로 프로퍼티

Cache file extension
public $cache_extension

$cache_path 공개적으로 프로퍼티

Path to cache folder (with trailing /)
public $cache_path

$cache_time 공개적으로 프로퍼티

Length of time to cache a file (in seconds)
public $cache_time