Questions tagged [objectcache]

36 questions
1
vote
0 answers

Clear cache with partial match of key

So I am using a C# ObjectCache instance. I have several objects stored in cache which refer to the same type of entity, but which may differ from user to user. So, for the sake of saving this item in the cache I have made a composite key which is in…
luisgepeto
  • 763
  • 1
  • 11
  • 36
1
vote
0 answers

Clear System.Runtime.ObjectCache of one application from other application

I have one ASP.NET MVC application (x.com) which uses System.Runtime.ObjectCache. I want to clear the cache of x.com from another application y.com which is hosted on another server. x.com is hosted in a load balanced environment. The cache should…
Sumit Kadam
  • 79
  • 2
  • 6
1
vote
0 answers

ObjectCache not updating after calling the callback function

Context: I need a class to put some keywords in the cache from a text file. I put a listener on that file so when it's modified, the cache update itself. ASP .NET MVC 3 -- Framework 4.5 Global.asax: protected void Application_Start() { //…
Gabriel Robert
  • 3,012
  • 2
  • 18
  • 36
1
vote
1 answer

ObjectCache CachedObjectRemovedCallback not being called?

I have a WCF service that is implementing a custom ObjectCache to cache a 3rd party COM object for interfacing with a 3270 environment. This 3rd party object works on a licensed model, so it's imperative that my RemovedCallBack be called each time…
gibbo
  • 367
  • 2
  • 4
  • 15
1
vote
1 answer

Maintaing List in cache like database

I have a requirement where in i need to maintain a list in memory. Eg - list every user will run the application and add new product/update product/ remove product from the list and all the changes should be reflected on that list. I am…
Ish Tech
  • 239
  • 1
  • 2
  • 12
1
vote
0 answers

storing items in ObjectCache : cant get old values

I use MemoryCache.Default instance of ObjectCache for storing data in MVC application; Every time I save some item and than immedeatly read it I see that items are stored as expected.But when new instance of Cashing class ( I mean class that used…
Anton Putov
  • 1,951
  • 8
  • 34
  • 62
1
vote
1 answer

ObjectCache or local fields for my WCF service?

I have a service that I wanted to implement some sort of caching on, but am unsure as to whether I should use .NET 4's ObjectCache or simply have private fields on the service that, after some time, gets refreshed. The situation is as follows: The…
Thelonias
  • 2,918
  • 3
  • 29
  • 63
0
votes
1 answer

Eclipselink shared cache and @Transient fields

I'm using @Transient annotation in my entity fields. How can I disable caching transient field values, so every copy retrived from cache would have default value. Now when one user change transient value other user can see it (when he gets the same…
karolkpl
  • 2,189
  • 10
  • 39
  • 60
0
votes
1 answer

Impact on site performance due to use ObjectCache from System..Runtime.Caching

I'm working on an online shopping cart site which is in ASP.NET MVC3. I'm using ObjectCache with policy Absolute Expiration for caching some products. How does it work? Is it starting one type of counter/timer or something to expire caching…
Dharmik Bhandari
  • 1,702
  • 5
  • 29
  • 60
0
votes
0 answers

php-redis with serializer igbinary - PHP Fatal error

lighttpd 1.4.69, PHP-fpm 8.2.3, debian 11, 10.5.18-MariaDB, php-redis 5.3.7 - compression lz4 All packages are installed via apt object cache pro wordpress plugin php info igbinary support - enabled igbinary version 3.2.13 redis - Available…
0
votes
0 answers

Redis Object Cache plugin not connecting on my wordpress site, WP version 6.1.1

I installed Redis Object cache plugin on my site and although it is giving page load times etc., in the menu bar it is in red and says not connected. The diagnostic logs is below. Is there a fix for this I can do as a lay person? Just wanted to…
0
votes
1 answer

How do I convert a generically cached object into a specific one in android

I have an object caching class that can save an object in memory, the problem arises when I try to retreive it later. How do I output a generic Object and then put it into a defined object on the other end. Here is the class public class ObjectCache…
Brian
  • 4,328
  • 13
  • 58
  • 103
0
votes
1 answer

Memory Cache not working in .Net Framework 4

My project is built on .Net Framework 4.0 and we are using built in ObjectCache as MemoryCache which is implemented in System.Runtime.Caching. It was working fine previously but suddenly it has stopped saving anything on the cache. When I call Set…
Saad
  • 198
  • 2
  • 12
0
votes
1 answer

Can I store a System.Timers.Timer in ObjectCache for later access?

I need to implement the following requirement for my job. When a user starts a new application, a 5-minute timer begins. If the user makes any edits to the application before the 5 minutes is up, the timer is canceled. If the timer runs to…
Nat Webb
  • 669
  • 1
  • 7
  • 18
0
votes
0 answers

is it possible to do multiple cache timings in single HTTP request in webapi2

I need to do a multiple caching with different timings in the single webapi call .is it possible in webapi using memory caching. In Http caching , in single request need to set single expiration, , there are 2 caching, one is for 5 minutes and…