Fetch From Cache Or ...

I am storing some app wide data into cache (memcache). What kind of performance hit would I take in constantly doing Yii::app()->cache->get(‘value’) vs calling this once and storing the object in Yii::app()->params[‘value’]?

I suppose the answer is "it depends" on things like cache size, etc… Any best practices in this area?

Bill

If in doubt, benchmark.

So … you want to cache the cache result? ??? I don’t think you’ll see a notable performance increase. But like nineinchnik said: Benchmark and see yourself.