API16

JCache/setLifeTime: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 40: Line 40:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setLifeTime
  category=setLifeTime
  category=JCache
  category=JCache
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:21, 25 March 2017

Description

Set cache lifetime


<! removed transcluded page call, red link never existed >

Syntax

setLifeTime($lt)
Parameter Name Default Value Description
$lt $lt Cache lifetime

Returns

void

Defined in

libraries/joomla/cache/cache.php

Importing

jimport( 'joomla.cache.cache' );

Source Body

function setLifeTime($lt)
{
        $this->_options['lifetime'] = $lt;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples