Yii and memcached

i want to run a script in cron job and cache some values and then retrieve these values in yii application

can any body give a hints how to do this

You can make console commands in yii. They have access to all your models and stuff. I have yii2 app where i use this extensively and run them from cron or manually for maintenance. If you have memcachebthen just put the data there and access the same key from your web app