caching

read CPU cache contents

Hi, Is there any way to read the CPU cache contents? Architecture is for ARM. I m invalidating a range of addresses and then want to make sure whether it is invalidated or not. Although I can do read and write of the range of addresses with and without invalidating and checking the invalidation, I want to know whether it is possible to ...

Performance difference of caching PHP Objects on file

Is there difference between caching PHP objects on disk rather than not? If cached, objects would only be created once for ALL the site visitors, and if not, they will be created once for every visitor. Is there a performance difference for this or would I be wasting time doing this? Thank you :) ...

How do I cache an IQueryable object?

I've got this method that returns a Linq-to-SQL query for all the rows in a 'UserStatus' table: public IQueryable<BLL.Entity.UserStatus> GetAll() { var query = from e in _SelectDataContext.UserStatus select new BLL.Entity.UserStatus { UserStatusId = e.UserStatusId, En...

Apache Reverse Caching Proxy - why isn't it caching?

I am attempting to set up a reverse caching proxy for ad graphics (gif, jpg, swf) serving. The proxying is working fine and sending the request on to the origin server, but I can't seem to figure out why the content isn't being cached. My current config is below. The goal is to cache all requests that match the /ca/ URI prefix. The origi...

ASP.Net Application Cache for Web Services

I have a web service with some data that I need to pass across sessions. I was thinking of using the application object. 1) Is this a good idea? 2) Some of the data will grow old and I'd like to purge it out so that the application object doesn't constantly grow. What is the best way to do this? Thanks ...

How do fulltext indexers (or caches) work?

Hello! I wonder, how are systems for fulltext search implemented, to be able to query millions of entries very fast? Please note: I'm not talking about systems which tokenize the content by separating it at whitespaces, but about system which are able to query even parts from the middle of tokens (which is a real challange). Background...

PHP Object Caching performance

Is there difference between caching PHP objects on disk rather than not? If cached, objects would only be created once for ALL the site visitors, and if not, they will be created once for every visitor. Is there a performance difference for this or would I be wasting time doing this? Basically, when it comes down to it, the main questio...

SSD as inline cache

This may be slightly off-topic for a strictly programming site, but I'm interested in starting a software project or contributing to an existing project that can do what I'm proposing. Now that SSD storage is becoming more popular, I am more interested in using one in my destop computer. Since they are very expensive per Gigabyte compa...

Cache database data in JSON

I'm using a framework that loads the table structure from the database everytime I open a page. I'm thinking of using JSON files to cache this data, and let PHP parse them when I need it. Is it better than loading data from the database? Are there another ways to do something similar? ...

How to get the recently viewed pictures on the web browser?

I want to retrieve the recently viewed pictures from IE. I know that all the files from IE exist in the internet temporary directory, commonly with the path like "C:\Documents and Settings[account]\Local Settings\Temporary Internet Files". Here something strange for me comes. I wrote a program of C++ to retrieve the directory above, an...

Convert an Object to a String in PHP

I want to convert an Object into a String in PHP. Specifically, I'm trying to take a mysql query response, and I'm trying to convert it into something I can write to a file and use later. Of course, when you try to write an Object to a file, PHP appropriately yells: Catchable fatal error: Object of class DB_result could not be converted...

If FindNextUrlCacheEntry() fails, how can I retrieve info of the failed entry again?

I got a ERROR_INSUFFICIENT_BUFFER error when invoking FindNextUrlCacheEntry(). Then I want to retrieve the failed entry again, using a enlarged buffer. But I found that when I invoke FindNextUrlCacheEntry(), it seems I was retrieving the one next to the failed entry. Is there any approach I can go back to retrieve the information of the ...

Query Notification Error

Hi, We have this weird issue regarding SQL Query Notification service. We have a main web application running with QN service so the cache item in the web get notification from SQL when the monitoring data changed. And it runs well. What is weird is when the other supporting web service tries to register QN subscription into SQL...

Caching data loaded with NHibernate

In my application I want to cache data loaded with NHibernate. I don't want to use the second level cache of NHibernate as this cache is not really meant to cache an entire graph of objects. But what is the best strategy to make sure I don' have any lazy loading proxies and/or collections in my graph? ...

Asp.net caching and w3p memory usage

Web application storing images in database. In our first setup we were storing (and serving) from images from database resized in asp.net cache. This was all good, but as web started getting more and more hits, we started experiencing weird problems, and by weird, I do mean weird - ranging from w3p crashing without any details to rando...

CSS compression & combining / js minification - Better to do at runtime or at build time?

I have to come up with a solution to compress, version (for caching purposes) and potentially combine our JS and CSS files and I've seen two dominant approaches so far: 1) At build time: As an MSBuild task or similar. 2) Dynamically at run time: As a custom HTTPHandler (we are ASP.NET btw) for .js and .css files, with something like thi...

Is there anything like memcached, but for sorted lists?

I have a situation where I could really benefit from having system like memcached, but with the ability to store (per each key) sorted list of elements, and modifying the list by addition of values. For example: something.add_to_sorted_list( 'topics_list_sorted_by_title', 1234, 'some_title') something.add_to_sorted_list( 'topics_list_s...

IIS worker process: Cache % Process Memory Used is more than 100 %, how is this possible??

PerfMon counter : Cache % Process Memory Used is more than 100 % . How is this possible?? Note : only one worker process was running, hosting one website. ...

Strategies for Cache Access During Refresh?

I’m looking for some strategies regarding accessing some cached data that resides in a internal company web service. Actually, preventing access of the cached data while the cache is being refreshed. We have a .Net 3.5 C# web service running on a web farm that maintains a cache of a half-dozen or so datasets. This data is configurati...

Problem using HttpRuntime.Cache

Am using following .net code to add objects to cache: public static void Add<T>(string key, T dataToCache) { try { ApplicationLog.Instance.WriteInfoFormat("Inserting item with key {0} into Cache...", key); HttpRuntime.Cache.Insert( key, ...