set() статический публичный Метод

Sets a request value by key
static public set ( mixed $key, mixed $value = null )
$key mixed The key to define
$value mixed The value for the passed key
Пример #1
0
 public function testSet()
 {
     r::set('testvar', 'testvalue');
     $this->assertEquals('testvalue', r::get('testvar'));
 }