redis\ActiveRecord keyPrefix()

keyPrefix() public static method

Declares prefix of the key that represents the keys that store this records in redis.

By default this method returns the class name as the table name by calling yii\helpers\Inflector::camel2id(). For example, 'Customer' becomes 'customer', and 'OrderItem' becomes 'order_item'. You may override this method if you want different key naming.

public static string keyPrefix ( )
return string

The prefix to apply to all AR keys

doc_Yii
2016-10-30 17:10:41
Comments
Leave a Comment

Please login to continue.