| 238 | | // |
| 239 | | ///** |
| 240 | | //* Cache resource |
| 241 | | //* @access public |
| 242 | | //* @type Cache_Handler_Resource_Interface |
| 243 | | //*/ |
| 244 | | //public static $resource; |
| 245 | | ///** |
| 246 | | //* Cached data filtering plugins |
| 247 | | //* @access public |
| 248 | | //* @type Cache_Handler_Resource_Interface |
| 249 | | //*/ |
| 250 | | //public static $plugin; |
| 251 | | ///** |
| 252 | | //* constructor |
| 253 | | //* @access public |
| 254 | | //* @param array $ini array( "property name" => "value " ); |
| 255 | | //* @return void |
| 256 | | //*/ |
| 257 | | //public function __construct($id, $group) |
| 258 | | //{ |
| 259 | | //$this->resource =& self::$resource; |
| 260 | | //$this->setCacheId( $id ); |
| 261 | | //$this->setCacheGroupName( $group ); |
| 262 | | //$this->plugin =& self::$plugin; |
| 263 | | //} |
| 264 | | //public function CacheItem($id, $group){ |
| 265 | | // |
| 266 | | //} |
| 267 | | ///** |
| 268 | | //* set Cache resource to this cache handler as static |
| 269 | | //* @access public |
| 270 | | //* @type Cache_Handler_Resource_Interface |
| 271 | | //* @return void |
| 272 | | //*/ |
| 273 | | //public static function setResource( Cache_Handler_Resource_Interface $res ) |
| 274 | | //{ |
| 275 | | //self::$resource = $res; |
| 276 | | //} |
| 277 | | ///** |
| 278 | | //* get Cache resource to this cache handler as static |
| 279 | | //* @access public |
| 280 | | //* @return Cache_Handler_Resource_Interface |
| 281 | | //*/ |
| 282 | | //public static function getResource() |
| 283 | | //{ |
| 284 | | //return self::$resource; |
| 285 | | //} |
| 286 | | ///** |
| 287 | | //* Clear Cache group from this resource |
| 288 | | //* @access public |
| 289 | | //* @param String group name |
| 290 | | //* @return boolean true (succeeded) / false (faild) |
| 291 | | //*/ |
| 292 | | //public static function clearCacheGroup( $name ) |
| 293 | | //{ |
| 294 | | //return self::$resource->clean( $name ); |
| 295 | | //} |
| 296 | | ///** |
| 297 | | //* clear all cache from this resource |
| 298 | | //* @return boolean true (succeeded) / false (faild) |
| 299 | | //*/ |
| 300 | | //public static function clearAll() |
| 301 | | //{ |
| 302 | | //self::$resource->clean(); |
| 303 | | //} |
| 304 | | ///** |
| 305 | | //* Add plugin to this class |
| 306 | | //* plugin is executed by added order |
| 307 | | //* @access public |
| 308 | | //*/ |
| 309 | | //public static function addPlugin( Cache_Handler_PlugIn_Interface $plugin ) |
| 310 | | //{ |
| 311 | | //self::$plugin[] =$plugin; |
| 312 | | //} |
| 313 | | ///** |
| 314 | | //* clear all registed plugin. |
| 315 | | //* @access public |
| 316 | | //*/ |
| 317 | | //public static function clearPlugin() |
| 318 | | //{ |
| 319 | | //unset( self::$plugin ); |
| 320 | | //} |
| 321 | | ///** |
| 322 | | //* Unregist plugin |
| 323 | | //* @access public |
| 324 | | //* @param int $index order of plugin |
| 325 | | //*/ |
| 326 | | //public static function delPlugin( $index ) |
| 327 | | //{ |
| 328 | | //unset( self::$plugin[$index] ); |
| 329 | | //} |
| 330 | | ///** |
| 331 | | //* Retrieve registered plugin |
| 332 | | //* @access public |
| 333 | | //* @param int $index order of plugin |
| 334 | | //* @return Cache_Handler_PlugIn_Interface plugin |
| 335 | | //*/ |
| 336 | | //public function & getPlugin($index) |
| 337 | | //{ |
| 338 | | //return $this->plugin[$index]; |
| 339 | | //} |
| 340 | | ///** |
| 341 | | //* execute plugin |
| 342 | | //* @access protected |
| 343 | | //*/ |
| 344 | | //protected function beforeWrite( $data ) |
| 345 | | //{ |
| 346 | | //if( $data == null ){ |
| 347 | | //return; |
| 348 | | //} |
| 349 | | //foreach( $this->plugin as $modifer ){ |
| 350 | | //$data = $modifer->beforeWrite( $data ); |
| 351 | | //} |
| 352 | | //return $data; |
| 353 | | //} |
| 354 | | ///** |
| 355 | | //* execute plugin |
| 356 | | //* @access protected |
| 357 | | //*/ |
| 358 | | //protected function afterRead( $data ) |
| 359 | | //{ |
| 360 | | //if( $data == null ){ |
| 361 | | //return; |
| 362 | | //} |
| 363 | | //foreach( array_reverse( $this->plugin ) as $modifer ){ |
| 364 | | //$data = $modifer->afterRead( $data ); |
| 365 | | //} |
| 366 | | //return $data; |
| 367 | | //} |
| 368 | | // |
| 369 | | ///** |
| 370 | | //* clear cache of this cache_id |
| 371 | | //* @access public |
| 372 | | //* @param void |
| 373 | | //* @return void |
| 374 | | //*/ |
| 375 | | //public function clear() |
| 376 | | //{ |
| 377 | | //$this->resource->remove( $this->cache_id ); |
| 378 | | //} |
| 379 | | ///** |
| 380 | | //* check is this cache_id cached in resource. |
| 381 | | //* @access private |
| 382 | | //* @return boolean |
| 383 | | //*/ |
| 384 | | //public function isCached( $date = null ) |
| 385 | | //{ |
| 386 | | //if( $this->_data == null ){ |
| 387 | | //$this->_data = $this->getCache(); |
| 388 | | //} |
| 389 | | // |
| 390 | | //if( $this->_data === FALSE || $this->_data === null || $this->_data == ""){ |
| 391 | | //return false; |
| 392 | | //}else{ |
| 393 | | //return true; |
| 394 | | //} |
| 395 | | //} |
| 396 | | ///** |
| 397 | | //* Check cache is not expired. |
| 398 | | //* If cache life time is expired, clear cache and return false. |
| 399 | | //* @access public |
| 400 | | //* @param String $time, cache life time |
| 401 | | //* @return boolean |
| 402 | | //*/ |
| 403 | | //public function check() |
| 404 | | //{ |
| 405 | | //if( $this->isCached( $date ) ){ |
| 406 | | //return true; |
| 407 | | //}else{ |
| 408 | | //if( $this->isExpired() ){ |
| 409 | | //$this->clear(); |
| 410 | | //} |
| 411 | | //return false; |
| 412 | | //} |
| 413 | | //} |
| 414 | | ///** |
| 415 | | //* return true if cache is expired |
| 416 | | //*/ |
| 417 | | //public function isExpired() |
| 418 | | //{ |
| 419 | | //$modifed = $this->getLastModified(); |
| 420 | | //$lifetime = $this->getCacheLifeTime(); |
| 421 | | //if( $lifetime == null ){//eternal cache |
| 422 | | //return false; |
| 423 | | //}else{ |
| 424 | | //return time() >= strtotime( $modified )+$lifetime; |
| 425 | | //} |
| 426 | | //} |
| 427 | | ///** |
| 428 | | //* return true if cache is NOT expired |
| 429 | | //*/ |
| 430 | | //public function isNotExpired() |
| 431 | | //{ |
| 432 | | //return !$this->isExpired(); |
| 433 | | //} |
| 434 | | ///** |
| 435 | | //* get cache of this cache id, and plugin applied |
| 436 | | //* @access public |
| 437 | | //* @param void |
| 438 | | //* @return String cache data |
| 439 | | //*/ |
| 440 | | //public function getCache() |
| 441 | | //{ |
| 442 | | //$data = $this->resource->get( $this->cache_id ); |
| 443 | | //$data = $this->afterRead( $data ); |
| 444 | | //return $data; |
| 445 | | //} |
| 446 | | ///** |
| 447 | | //* Return cached modified date of this cache id. |
| 448 | | //* When resource has no cache, this function returns null. |
| 449 | | //* @return String date |
| 450 | | //*/ |
| 451 | | //public function getLastModified() |
| 452 | | //{ |
| 453 | | //if( $this->isCached() == false ){ |
| 454 | | //return null; |
| 455 | | //} |
| 456 | | //return $this->resource->getLastModified( $this->cache_id ); |
| 457 | | //} |
| 458 | | ///** |
| 459 | | //* return cached life time of this cache id. |
| 460 | | //* when resource has no cache, this function returns null. |
| 461 | | //* @return int |
| 462 | | //*/ |
| 463 | | //public function getCacheLifeTime() |
| 464 | | //{ |
| 465 | | //if( $this->isCached() == false ){ |
| 466 | | //return null; |
| 467 | | //} |
| 468 | | //return $this->resource->getTimeToLive( $this->cache_id ); |
| 469 | | //} |
| 470 | | ///** |
| 471 | | //* set this cache id |
| 472 | | //* @access public |
| 473 | | //* @param String $id cache id |
| 474 | | //* @return void |
| 475 | | //*/ |
| 476 | | //public function setCacheId( $id ) |
| 477 | | //{ |
| 478 | | //$this->cache_id = $id; |
| 479 | | //} |
| 480 | | ///** |
| 481 | | //* returns cache id |
| 482 | | //* @access public |
| 483 | | //* @param void |
| 484 | | //* @return String cache id |
| 485 | | //*/ |
| 486 | | //public function getCacheId() |
| 487 | | //{ |
| 488 | | //return $this->cache_id; |
| 489 | | //} |
| 490 | | ///** |
| 491 | | //* add cache group name to this cache id |
| 492 | | //* @access public |
| 493 | | //* @param String $name |
| 494 | | //* @return void |
| 495 | | //*/ |
| 496 | | //public function addCacheGroupName( $name ) |
| 497 | | //{ |
| 498 | | //if( $name != "" ){ |
| 499 | | ////$ret = $this->resource->addIntoGroup( $this->cache_id, $name ); |
| 500 | | //$this->group[] = $name; |
| 501 | | //return true; |
| 502 | | //} |
| 503 | | //return false; |
| 504 | | //} |
| 505 | | // |
| 506 | | ///** |
| 507 | | //* resets cache group name already set, and set cache group name. |
| 508 | | //* @access |
| 509 | | //* @param |
| 510 | | //* @return |
| 511 | | //*/ |
| 512 | | //public function setCacheGroupName( $names ) |
| 513 | | //{ |
| 514 | | //if( is_array( $names ) ){ |
| 515 | | //$this->group = $names; |
| 516 | | //}else{ |
| 517 | | //$this->addCacheGroupName( $names ); |
| 518 | | //} |
| 519 | | //return true; |
| 520 | | //} |
| 521 | | ///** |
| 522 | | //* store cache data to this resource |
| 523 | | //* @access public |
| 524 | | //* @param String content wanted to be cached |
| 525 | | //* @return void |
| 526 | | //*/ |
| 527 | | //public function setCache( $data ) |
| 528 | | //{ |
| 529 | | //$data = $this->beforeWrite( $data ); |
| 530 | | //return $this->resource->save( $data, $this->cache_id, $this->group ); |
| 531 | | //} |
| 532 | | ///** |
| 533 | | //* set or modify cache last modified date |
| 534 | | //* @access public |
| 535 | | //* @param String $date , if this param is skipped date("r") will be set to |
| 536 | | //* @return boolean |
| 537 | | //*/ |
| 538 | | //public function setLastModified( $date = null ) |
| 539 | | //{ |
| 540 | | //if( $date == null ){ |
| 541 | | //$date = date("r"); |
| 542 | | //} |
| 543 | | //return $this->resource->setLastModified( $this->cache_id, $date ); |
| 544 | | //} |
| 545 | | ///** |
| 546 | | //* set or modify cache last modified date |
| 547 | | //* @access public |
| 548 | | //* @param String $date , default 3600, |
| 549 | | //* 'setCacheLifeTime( NULL )' or 'setCacheLifeTime("")' is for eternal cache. |
| 550 | | //* @return boolean |
| 551 | | //*/ |
| 552 | | //public function setCacheLifeTime( $time = 3600 ) |
| 553 | | //{ |
| 554 | | //if( $time == null || $time == "" ){ |
| 555 | | //$time == ""; |
| 556 | | //} |
| 557 | | //return $this->resource->setTimeToLive( $this->cache_id, $time ); |
| 558 | | //} |
| | 238 | // |
| | 239 | ///** |
| | 240 | //* Cache resource |
| | 241 | //* @access public |
| | 242 | //* @type Cache_Handler_Resource_Interface |
| | 243 | //*/ |
| | 244 | //public static $resource; |
| | 245 | ///** |
| | 246 | //* Cached data filtering plugins |
| | 247 | //* @access public |
| | 248 | //* @type Cache_Handler_Resource_Interface |
| | 249 | //*/ |
| | 250 | //public static $plugin; |
| | 251 | ///** |
| | 252 | //* constructor |
| | 253 | //* @access public |
| | 254 | //* @param array $ini array( "property name" => "value " ); |
| | 255 | //* @return void |
| | 256 | //*/ |
| | 257 | //public function __construct($id, $group) |
| | 258 | //{ |
| | 259 | //$this->resource =& self::$resource; |
| | 260 | //$this->setCacheId( $id ); |
| | 261 | //$this->setCacheGroupName( $group ); |
| | 262 | //$this->plugin =& self::$plugin; |
| | 263 | //} |
| | 264 | //public function CacheItem($id, $group){ |
| | 265 | // |
| | 266 | //} |
| | 267 | ///** |
| | 268 | //* set Cache resource to this cache handler as static |
| | 269 | //* @access public |
| | 270 | //* @type Cache_Handler_Resource_Interface |
| | 271 | //* @return void |
| | 272 | //*/ |
| | 273 | //public static function setResource( Cache_Handler_Resource_Interface $res ) |
| | 274 | //{ |
| | 275 | //self::$resource = $res; |
| | 276 | //} |
| | 277 | ///** |
| | 278 | //* get Cache resource to this cache handler as static |
| | 279 | //* @access public |
| | 280 | //* @return Cache_Handler_Resource_Interface |
| | 281 | //*/ |
| | 282 | //public static function getResource() |
| | 283 | //{ |
| | 284 | //return self::$resource; |
| | 285 | //} |
| | 286 | ///** |
| | 287 | //* Clear Cache group from this resource |
| | 288 | //* @access public |
| | 289 | //* @param String group name |
| | 290 | //* @return boolean true (succeeded) / false (faild) |
| | 291 | //*/ |
| | 292 | //public static function clearCacheGroup( $name ) |
| | 293 | //{ |
| | 294 | //return self::$resource->clean( $name ); |
| | 295 | //} |
| | 296 | ///** |
| | 297 | //* clear all cache from this resource |
| | 298 | //* @return boolean true (succeeded) / false (faild) |
| | 299 | //*/ |
| | 300 | //public static function clearAll() |
| | 301 | //{ |
| | 302 | //self::$resource->clean(); |
| | 303 | //} |
| | 304 | ///** |
| | 305 | //* Add plugin to this class |
| | 306 | //* plugin is executed by added order |
| | 307 | //* @access public |
| | 308 | //*/ |
| | 309 | //public static function addPlugin( Cache_Handler_PlugIn_Interface $plugin ) |
| | 310 | //{ |
| | 311 | //self::$plugin[] = $plugin; |
| | 312 | //} |
| | 313 | ///** |
| | 314 | //* clear all registered plugin. |
| | 315 | //* @access public |
| | 316 | //*/ |
| | 317 | //public static function clearPlugin() |
| | 318 | //{ |
| | 319 | //unset( self::$plugin ); |
| | 320 | //} |
| | 321 | ///** |
| | 322 | //* Unregister plugin |
| | 323 | //* @access public |
| | 324 | //* @param int $index order of plugin |
| | 325 | //*/ |
| | 326 | //public static function delPlugin( $index ) |
| | 327 | //{ |
| | 328 | //unset( self::$plugin[$index] ); |
| | 329 | //} |
| | 330 | ///** |
| | 331 | //* Retrieve registered plugin |
| | 332 | //* @access public |
| | 333 | //* @param int $index order of plugin |
| | 334 | //* @return Cache_Handler_PlugIn_Interface plugin |
| | 335 | //*/ |
| | 336 | //public function & getPlugin($index) |
| | 337 | //{ |
| | 338 | //return $this->plugin[$index]; |
| | 339 | //} |
| | 340 | ///** |
| | 341 | //* execute plugin |
| | 342 | //* @access protected |
| | 343 | //*/ |
| | 344 | //protected function beforeWrite( $data ) |
| | 345 | //{ |
| | 346 | //if( $data == null ){ |
| | 347 | //return; |
| | 348 | //} |
| | 349 | //foreach( $this->plugin as $modifer ){ |
| | 350 | //$data = $modifer->beforeWrite( $data ); |
| | 351 | //} |
| | 352 | //return $data; |
| | 353 | //} |
| | 354 | ///** |
| | 355 | //* execute plugin |
| | 356 | //* @access protected |
| | 357 | //*/ |
| | 358 | //protected function afterRead( $data ) |
| | 359 | //{ |
| | 360 | //if( $data == null ){ |
| | 361 | //return; |
| | 362 | //} |
| | 363 | //foreach( array_reverse( $this->plugin ) as $modifer ){ |
| | 364 | //$data = $modifer->afterRead( $data ); |
| | 365 | //} |
| | 366 | //return $data; |
| | 367 | //} |
| | 368 | // |
| | 369 | ///** |
| | 370 | //* clear cache of this cache_id |
| | 371 | //* @access public |
| | 372 | //* @param void |
| | 373 | //* @return void |
| | 374 | //*/ |
| | 375 | //public function clear() |
| | 376 | //{ |
| | 377 | //$this->resource->remove( $this->cache_id ); |
| | 378 | //} |
| | 379 | ///** |
| | 380 | //* check is this cache_id cached in resource. |
| | 381 | //* @access private |
| | 382 | //* @return boolean |
| | 383 | //*/ |
| | 384 | //public function isCached( $date = null ) |
| | 385 | //{ |
| | 386 | //if( $this->_data == null ){ |
| | 387 | //$this->_data = $this->getCache(); |
| | 388 | //} |
| | 389 | // |
| | 390 | //if( $this->_data === FALSE || $this->_data === null || $this->_data == "" ){ |
| | 391 | //return false; |
| | 392 | //}else{ |
| | 393 | //return true; |
| | 394 | //} |
| | 395 | //} |
| | 396 | ///** |
| | 397 | //* Check cache is not expired. |
| | 398 | //* If cache life time is expired, clear cache and return false. |
| | 399 | //* @access public |
| | 400 | //* @param String $time, cache life time |
| | 401 | //* @return boolean |
| | 402 | //*/ |
| | 403 | //public function check() |
| | 404 | //{ |
| | 405 | //if( $this->isCached( $date ) ){ |
| | 406 | //return true; |
| | 407 | //}else{ |
| | 408 | //if( $this->isExpired() ){ |
| | 409 | //$this->clear(); |
| | 410 | //} |
| | 411 | //return false; |
| | 412 | //} |
| | 413 | //} |
| | 414 | ///** |
| | 415 | //* return true if cache is expired |
| | 416 | //*/ |
| | 417 | //public function isExpired() |
| | 418 | //{ |
| | 419 | //$modifed = $this->getLastModified(); |
| | 420 | //$lifetime = $this->getCacheLifeTime(); |
| | 421 | //if( $lifetime == null ){//eternal cache |
| | 422 | //return false; |
| | 423 | //}else{ |
| | 424 | //return time() >= strtotime( $modified )+$lifetime; |
| | 425 | //} |
| | 426 | //} |
| | 427 | ///** |
| | 428 | //* return true if cache is NOT expired |
| | 429 | //*/ |
| | 430 | //public function isNotExpired() |
| | 431 | //{ |
| | 432 | //return !$this->isExpired(); |
| | 433 | //} |
| | 434 | ///** |
| | 435 | //* get cache of this cache id, and plugin applied |
| | 436 | //* @access public |
| | 437 | //* @param void |
| | 438 | //* @return String cache data |
| | 439 | //*/ |
| | 440 | //public function getCache() |
| | 441 | //{ |
| | 442 | //$data = $this->resource->get( $this->cache_id ); |
| | 443 | //$data = $this->afterRead( $data ); |
| | 444 | //return $data; |
| | 445 | //} |
| | 446 | ///** |
| | 447 | //* Return cached modified date of this cache id. |
| | 448 | //* When resource has no cache, this function returns null. |
| | 449 | //* @return String date |
| | 450 | //*/ |
| | 451 | //public function getLastModified() |
| | 452 | //{ |
| | 453 | //if( $this->isCached() == false ){ |
| | 454 | //return null; |
| | 455 | //} |
| | 456 | //return $this->resource->getLastModified( $this->cache_id ); |
| | 457 | //} |
| | 458 | ///** |
| | 459 | //* return cached life time of this cache id. |
| | 460 | //* when resource has no cache, this function returns null. |
| | 461 | //* @return int |
| | 462 | //*/ |
| | 463 | //public function getCacheLifeTime() |
| | 464 | //{ |
| | 465 | //if( $this->isCached() == false ){ |
| | 466 | //return null; |
| | 467 | //} |
| | 468 | //return $this->resource->getTimeToLive( $this->cache_id ); |
| | 469 | //} |
| | 470 | ///** |
| | 471 | //* set this cache id |
| | 472 | //* @access public |
| | 473 | //* @param String $id cache id |
| | 474 | //* @return void |
| | 475 | //*/ |
| | 476 | //public function setCacheId( $id ) |
| | 477 | //{ |
| | 478 | //$this->cache_id = $id; |
| | 479 | //} |
| | 480 | ///** |
| | 481 | //* returns cache id |
| | 482 | //* @access public |
| | 483 | //* @param void |
| | 484 | //* @return String cache id |
| | 485 | //*/ |
| | 486 | //public function getCacheId() |
| | 487 | //{ |
| | 488 | //return $this->cache_id; |
| | 489 | //} |
| | 490 | ///** |
| | 491 | //* add cache group name to this cache id |
| | 492 | //* @access public |
| | 493 | //* @param String $name |
| | 494 | //* @return void |
| | 495 | //*/ |
| | 496 | //public function addCacheGroupName( $name ) |
| | 497 | //{ |
| | 498 | //if( $name != "" ){ |
| | 499 | ////$ret = $this->resource->addIntoGroup( $this->cache_id, $name ); |
| | 500 | //$this->group[] = $name; |
| | 501 | //return true; |
| | 502 | //} |
| | 503 | //return false; |
| | 504 | //} |
| | 505 | // |
| | 506 | ///** |
| | 507 | //* resets cache group name already set, and set cache group name. |
| | 508 | //* @access |
| | 509 | //* @param |
| | 510 | //* @return |
| | 511 | //*/ |
| | 512 | //public function setCacheGroupName( $names ) |
| | 513 | //{ |
| | 514 | //if( is_array( $names ) ){ |
| | 515 | //$this->group = $names; |
| | 516 | //}else{ |
| | 517 | //$this->addCacheGroupName( $names ); |
| | 518 | //} |
| | 519 | //return true; |
| | 520 | //} |
| | 521 | ///** |
| | 522 | //* store cache data to this resource |
| | 523 | //* @access public |
| | 524 | //* @param String content wanted to be cached |
| | 525 | //* @return void |
| | 526 | //*/ |
| | 527 | //public function setCache( $data ) |
| | 528 | //{ |
| | 529 | //$data = $this->beforeWrite( $data ); |
| | 530 | //return $this->resource->save( $data, $this->cache_id, $this->group ); |
| | 531 | //} |
| | 532 | ///** |
| | 533 | //* set or modify cache last modified date |
| | 534 | //* @access public |
| | 535 | //* @param String $date, if this param is skipped date("r") will be set to |
| | 536 | //* @return boolean |
| | 537 | //*/ |
| | 538 | //public function setLastModified( $date = null ) |
| | 539 | //{ |
| | 540 | //if( $date == null ){ |
| | 541 | //$date = date("r"); |
| | 542 | //} |
| | 543 | //return $this->resource->setLastModified( $this->cache_id, $date ); |
| | 544 | //} |
| | 545 | ///** |
| | 546 | //* set or modify cache last modified date |
| | 547 | //* @access public |
| | 548 | //* @param String $date, default 3600, |
| | 549 | //* 'setCacheLifeTime( NULL )' or 'setCacheLifeTime("")' is for eternal cache. |
| | 550 | //* @return boolean |
| | 551 | //*/ |
| | 552 | //public function setCacheLifeTime( $time = 3600 ) |
| | 553 | //{ |
| | 554 | //if( $time == null || $time == "" ){ |
| | 555 | //$time == ""; |
| | 556 | //} |
| | 557 | //return $this->resource->setTimeToLive( $this->cache_id, $time ); |
| | 558 | //} |