Open jascam opened 7 years ago
Hello mladjenovic,
Thank you for using our code sample request service.
I'd like to confirm with you my understanding of the sample request: Object cache is a simple module using Drupal's cache API to store and retrieve objects(nodes, comments,users etc) to speed up rendering of pages,to lower the number of requests to the database and so on which benefits both anonymous as authenticated users. I think this namespace feature implement the function that looks like memcache. But i think this sample idea lack of request detail. I used memcache to implement the database cache at the past project.It used by game software system to assist it to add Player point. So this sample idea should contact actual business. Could you describute it more clearly mainly about business relationship?
Is my understanding correct? Please feel free to let me know if I misunderstood your needs.
Thanks All-In-One Code Framework http://1code.codeplex.com
This comment was posted by orichisonic on 4/12/2011
I want to implement custom cache for my desktop app based on http://msdn.microsoft.com/en-us/library/system.runtime.caching.objectcache.aspx ,but I can't find any sample on the net to give me a starting point. I'm mainly interested on how to implement file based cache instead of memcache.
This comment was posted by mladjenovic on 4/13/2011
hi mladjenovic, I have digged into this objectcache namespace. It seems that it surrounds web part. I firstly have heard of it at Net 2.0 environment. It uses to be Webform development application. And I think it can cache the whole object to cache and sometimes release it into control and support ajax technology. However your topic mentioned above is talked about distributed data cache.It applies into scenes having server-client module. It is because that client terminals have many enough and use access the same data, additionally, the same data always modified by varity client terminal. At my past project, memcache uses to cache distributed data coming from different remote database servers. So I believe that you can use memcache but cann't use object cache because of different purpose produced technology. And Thank you for your enthusiastic replying. Look forward to hearing for you.
Sincerely, All-In-One Code Framework http://1code.codeplex.com
This comment was posted by orichisonic on 4/13/2011
Thanks for the response. I'm downloading large set of files over sftp . So to speed up the process I need to store my data on disc, but I need all capabilities of memory cache LRU, Sliding expiration etc. So it would be nice that someone implement barebone caching system that implements Expiration policies and other and exposes interface so we could implement where data are held ,in memory,database,file system. Thanks in advance.
This comment was posted by mladjenovic on 4/14/2011
This comment was posted by on 4/14/2011
the technology mentioned by customer isn't worth composing.It is because that the technology don't apply to this scenario.
** Closed by orichisonic 4/14/2011 10:51 PM
This comment was posted by orichisonic on 4/15/2011
This comment was posted by orichisonic on 4/15/2011
This comment was posted by on 9/16/2011
This comment was posted by on 9/24/2011
This comment was posted by on 2/21/2013
Code sample how to implement class based on System.Runtime.Caching.ObjectCache especially file based cache. Thanks in advance.
Migrated CodePlex Work Item Details
CodePlex Work Item ID: '8647' Vote count: '3'