Class JCacheStorageMemcache
	
	
Memcache cache storage handler
	 
	
		- 
			JCacheStorage
			
			
			
		
- 
			 JCacheStorageMemcache JCacheStorageMemcache
Methods summary
		
		
			| 
				 public 
				
				
				 | 
			#
			__construct( array $options = array() )
				
Constructor Parameters
						$optionsarray- $options Optional parameters.Since
							11.1
 Overrides | 
		
			| 
				 protected 
				
				
				 | 
			#
			getConnection( )
				
Create the Memcache connection 
				
Create the Memcache connection ThrowsSince
							11.1
 | 
		
			| 
				 protected 
				string
				
				 | 
			#
			_getCacheId( string $id, string $group )
				
Get a cache_id string from an id/group pair 
				
Get a cache_id string from an id/group pair Parameters
						$idstring- $id The cache data id$groupstring- $group The cache data groupReturns
						string- The cache_id string
 Since
							11.1
 Overrides | 
		
			| 
				 public 
				boolean
				
				 | 
			#
			contains( string $id, string $group )
				
Check if the cache contains data stored by ID and group 
				
Check if the cache contains data stored by ID and group Parameters
						$idstring- $id The cache data ID$groupstring- $group The cache data groupReturns
						boolean
 Since
							3.7.0
 Overrides | 
		
			| 
				 public 
				mixed
				
				 | 
			#
			get( string $id, string $group, boolean $checkTime = true )
				
Get cached data by ID and group 
				
Get cached data by ID and group Parameters
						$idstring- $id The cache data ID$groupstring- $group The cache data group$checkTimeboolean- $checkTime True to verify cache time expiration thresholdReturns
						mixed- Boolean false on failure or a cached data object
 Since
							11.1
 Overrides | 
		
			| 
				 public 
				mixed
				
				 | 
			#
			getAll( )
				
Get all cached data Returns
						mixed- Boolean false on failure or a cached data object
 Since
							11.1
 Overrides | 
		
			| 
				 public 
				boolean
				
				 | 
			#
			store( string $id, string $group, string $data )
				
Store the data to cache by ID and group 
				
Store the data to cache by ID and group Parameters
						$idstring- $id The cache data ID$groupstring- $group The cache data group$datastring- $data The data to store in cacheReturns
						boolean
 Since
							11.1
 Overrides | 
		
			| 
				 public 
				boolean
				
				 | 
			#
			remove( string $id, string $group )
				
Remove a cached data entry by ID and group 
				
Remove a cached data entry by ID and group Parameters
						$idstring- $id The cache data ID$groupstring- $group The cache data groupReturns
						boolean
 Since
							11.1
 Overrides | 
		
			| 
				 public 
				boolean
				
				 | 
			#
			clean( string $group, string $mode = null )
				
Clean cache for a group given a mode. 
				
Clean cache for a group given a mode. group mode : cleans all cache in the group notgroup mode : cleans all cache
not in the group Parameters
						$groupstring- $group The cache data group$modestring- $mode The mode for cleaning cache [group|notgroup]Returns
						boolean
 Since
							11.1
 Overrides | 
		
			| 
				 public 
				boolean
				
				 | 
			#
			flush( )
				
Flush all existing items in storage. 
				
Flush all existing items in storage. Returns
						boolean
 Since
							3.6.3
 Overrides | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			isSupported( )
				
Test to see if the storage handler is available. 
				
Test to see if the storage handler is available. Returns
						boolean
 Since
							12.1
 Overrides | 
		
			| 
				 public 
				mixed
				
				 | 
			#
			lock( string $id, string $group, integer $locktime )
				
Lock cached item Parameters
						$idstring- $id The cache data ID$groupstring- $group The cache data group$locktimeinteger- $locktime Cached item max lock timeReturns
						mixed- Boolean false if locking failed or an object containing properties lock and
locklooped
 Since
							11.1
 Overrides | 
		
			| 
				 public 
				boolean
				
				 | 
			#
			unlock( string $id, string $group = null )
				
Unlock cached item Parameters
						$idstring- $id The cache data ID$groupstring- $group The cache data groupReturns
						boolean
 Since
							11.1
 Overrides | 
		
			| 
				 protected 
				boolean
				
				 | 
			#
			lockindex( )
				
Lock cache index Returns
						boolean
 Since
							11.1
 | 
		
			| 
				 protected 
				boolean
				
				 | 
			#
			unlockindex( )
				
Unlock cache index Returns
						boolean
 Since
							11.1
 | 
		
		
		
			addIncludePath(), 
			gc(), 
			getInstance(), 
			test()
		
		Magic methods summary
		Properties summary
		
		
			| 
				protected static 
				Memcache
			 | $_db | 
				#
				
					
Memcache connection object 
					
Memcache connection object Since
								11.1
 | 
		
			| 
				protected  
				integer
			 | $_compress | 
				#
				
					
Payload compression level 
					
Payload compression level Since
								11.1
 | 
		
		
		
			$_application, 
			$_hash, 
			$_language, 
			$_lifetime, 
			$_locking, 
			$_now, 
			$rawname