Fast Cache thinkphp

If your data storage needs no validity period, the system also provides a quick method F can be used to cache for faster operation.

Marble platform manufacturers

F method can support different types of memory, if the file type, then by default under DATA_PATH directory.

Fast Cache Data Data

  1. F('data',$Data);

Fast Cache Data data saved to the specified directory

  1. F('data',$Data,TEMP_PATH);

Gets a cached data

  1. $Data = F('data');

Delete cache data

  1. F('data',NULL);

F method supports automatically create cache subdirectory in DATA_PATHthe directory cache data following the data, if the User subdirectory does not exist, it is created automatically:

  1. F('User/data',$Data);

System built-in data field information cache is to use a fast caching mechanism.

 

Guess you like

Origin www.cnblogs.com/furuihua/p/11842051.html