public static function store(FileSystemCacheKey $key, $data, $ttl=null) {	
		$filename = $key->getFileName();
		
		$data = new FileSystemCacheValue($key,$data,$ttl);
		
		$fh = self::getFileHandle($filename,'c');

		if(!$fh) return false;
		
		if(!self::putContents($fh,$data)) return false;

		return true;
	}
public static function store(FileSystemCacheKey $key, $data, $ttl=null) {	
		$filename = $key->getFileName();
		
		$data = new FileSystemCacheValue($key,$data,$ttl);
		
		$fh = self::getFileHandle($filename,'c');

		if(!$fh) return false;
		
		if(!self::putContents($fh,$data)) return false;

		return true;
	}
public static function store ( FileSystemCacheKey $ key , $ data , $ ttl = null ) { $ filename = $ key -> getFileName ( ) ; $ data = new FileSystemCacheValue ( $ key , $ data , $ ttl ) ; $ fh = self :: getFileHandle ( $ filename , 'c' ) ; if ( ! $ fh ) return false ; if ( ! self :: putContents ( $ fh , $ data ) ) return false ; return true ; }
Stores data in the cache
@param FileSystemCacheKey $key The cache key
@param mixed $data The data to store (will be serialized before storing)
@param int $ttl The number of seconds until the cache expires.  (optional)
@return boolean True on success, false on failure
Stores data in the cache