This is a caching extension for getID3(). It works the exact same way as the getID3 class, but return cached information very fast
Example:
Normal getID3 usage (example):
require_once 'getid3/getid3.php'; $getID3 = new getID3; $getID3->encoding = 'UTF-8'; $info1 = $getID3->analyze('file1.flac'); $info2 = $getID3->analyze('file2.wv');
getID3_cached usage:
require_once 'getid3/getid3.php'; require_once 'getid3/getid3/extension.cache.dbm.php'; $getID3 = new getID3_cached('db3', '/tmp/getid3_cache.dbm', '/tmp/getid3_cache.lock'); $getID3->encoding = 'UTF-8'; $info1 = $getID3->analyze('file1.flac'); $info2 = $getID3->analyze('file2.wv');
Supported Cache Types
SQL Databases: (use extension.cache.mysql)
cache_type cache_options ------------------------------------------------------------------- mysql host, database, username, password
DBM-Style Databases: (this extension)
cache_type cache_options ------------------------------------------------------------------- gdbm dbm_filename, lock_filename ndbm dbm_filename, lock_filename db2 dbm_filename, lock_filename db3 dbm_filename, lock_filename db4 dbm_filename, lock_filename (PHP5 required)
PHP must have write access to both dbm_filename and lock_filename.
Recommended Cache Types
Infrequent updates, many reads any DBM Frequent updates mysql
Located in /lib/core/Parsers/getid3/extension.cache.dbm.php (line 72)
getID3 | --getID3_cached_dbm
Inherited from getID3
getID3::$encoding
getID3::$encoding_id3v1
getID3::$filename
getID3::$option_extra_info
getID3::$option_max_2gb_check
getID3::$option_md5_data
getID3::$option_md5_data_source
getID3::$option_sha1_data
getID3::$option_tags_html
getID3::$option_tags_process
getID3::$option_tag_apetag
getID3::$option_tag_id3v1
getID3::$option_tag_id3v2
getID3::$option_tag_lyrics3
getID3::$tempdir
Inherited From getID3
getID3::getID3()
getID3::analyze()
getID3::CalculateCompressionRatioAudio()
getID3::CalculateCompressionRatioVideo()
getID3::CalculateReplayGain()
getID3::ChannelsBitratePlaytimeCalculations()
getID3::CharConvert()
getID3::CleanUp()
getID3::error()
getID3::GetFileFormat()
getID3::GetFileFormatArray()
getID3::getHashdata()
getID3::getid3_tempnam()
getID3::HandleAllTags()
getID3::ProcessAudioStreams()
getID3::setOption()
getID3::warning()
Documentation generated on Sun, 06 Mar 2011 00:23:52 -0500 by phpDocumentor 1.4.3