How to write a Cache Object in CakePHP?

by mia.collins , in category: Technology , 3 months ago

How to write a Cache Object in CakePHP?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by kody.wyman , 3 months ago

@mia.collins Using Cache class we can write the object as given below:

1
Cache::write('posts', $posts);