Yii Framework Forum: Flush Certian Query Cache (Using Memcache) - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Flush Certian Query Cache (Using Memcache) Rate Topic: -----

#1 User is offline   Devypt 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 01-May 11

Posted 24 December 2012 - 03:44 PM

Hi All
I have small question
I'm using memcache to cache queries
but i want to ask if there is away to flush one query caching
not flush_all?
or any simple way to use set&get with caching
0

#2 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,269
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 25 December 2012 - 06:39 AM

If you know (or can evaluate) the key of the cache item, you could simply use CMemCache.deleteValue(). Could you explain your use case a bit? There might be better options than that.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users