invalidate

Memcache invalidate entries according to a pattern?

Is there a way to invalidate entries in memcache according to a wildcard key? So if I have the following memcache keys: data/1 data/2 data/3 Is there a way I can invalidate those keys with something like data/*? It would be extremely helpful to clear out a bunch of stale data in one swoop. ...

How to invalidate() an ASP.NET UserControl?

Hello everyone, How to update the Control's preview in ASP.NET design mode? It is possible to re-draw the control by calling the ControlDesigner.Invalidate(). But How do I access the designer inside the Control? Thanks a million, dattebayo... ...

Zend Cache Core and APC - I don't understand how old cache entries get invalidated

For Zend_Cache_Frontend_Core you can define a lifetime and, according to the documentation, a "automatic_cleaning_factor". According to the manual, this property specifies on how many writes to the cache old cache entries get invalid. When I use APC as backend shouldn't the cache invalidate itself automatically without having to write ...

How to find if NSTimer is active or not?

I have a something like this: NSTimer* timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateCountdown) userInfo:nil ...

What's the best strategy to invalidate ORM cache?

We have our ORM pretty nicely coupled with cache, so all our object gets are cached. Currently we invalidate our objects before and after our insert/update/delete of our object. What's your experience? ...

ASP.NET - Invalidate browser cache

Hello, I have a question related to cache invalidation techniques... I am trying to implement a mechanism for my website, that automatically invalidates browser cache (css, images...). I want to be able to programatically invalidate browser cache, whenever I update the website (change images or styles); For example: for the current re...

Refresh / Update WPF controls like win forms

changing the text of a label (or sophisticatedly we can say a text-based progress bar). in winforms you just Invalidate / Update. But how to do this in WPF without using Background Threads. ??? ...

Winforms Invalidate doesn't fire up OnPaint

I'm trying to move a form smoothly using code given on question http://stackoverflow.com/questions/967968/how-to-smoothly-animate-windows-forms-location-with-different-speeds But for some reason my this.Invalidate() call will never fire up the OnPaint event. Is there some configuration that's required on the form for this to be possible...

Invalidating a path from the Django cache recursively

I am deleting a single path from the Django cache like this: from models import Graph from django.http import HttpRequest from django.utils.cache import get_cache_key from django.db.models.signals import post_save from django.core.cache import cache def expire_page(path): request = H...

How to set DataContext without clearing dependency properties?

I'm using a viewmodel pattern, so my DataContext for my custom user control is actually a viewmodel wrapper for the real data. My custom control can contain hierarchal instances of the custom control. I set up a DependencyProperty in the custom control for the real piece of data, with the hopes of creating a new viewmodel for that data...

Invalidate() command is not repainting the control.

Hi, I am trying to develop a custom control which needs to have some rectangles to be drawn. Now, 1 rectangle needs to be moved so I used overrided mousemove method to get the new location and change the location part of that rectangle and then used Invalidate() command. But problem is, that whole control is painted instead of that recta...

Invalidate(); Vs. Update();

Hi All I have code that lets be drag around a borderless form in winforms that I've been using for several months now, which works extremely well. But when I first was given the code, they used this.Invalidate(); in the MouseMove event of the Form, and the Form flickered a little and was slow when dragging around. So, I replaced Invali...

Invalidating JPA EntityManager session

A project I am working on uses Spring 2.5 & JPA with Hibernate as a provider. My DAO classes extend JpaDaoSupport, so I get my JpaTemplate using the getJpaTemplate() method. The back-end database can get changed either by my application, or a third-party application. When a third-party application changes the database (mostly config...

How does ImageView just redraw part of its content when invalidate(Rect) is called?

Hi, guys I am new to Android development, just reading docs and trying the APIs. I am quit confused how ImageView managed to draw just a part of its content after an invalidate(Rect) invocation. I've checked ImageView.java, found no other drawing method except onDraw(Canvas), but onDraw(Canvas) only cut the drawable only if it is beyoun...

Invalidating session before iPhone application quits

Hello I would like to tell the server to invalidate an ongoing session when the user quits the iPhone application. In the app delegate, I send a request to the server in the (void)applicationWillTerminate:(UIApplication *)application method. I am not waiting for a server answer, I just want to send the request and quit. However I cant...

Onpaint events (invalidated) changing execution order after a period normal operation (runtime)

I have 3 data graphs that are painted via the their paint events. When I have data that I need to insert into the graph I call the controls invalidate() command. The first control's paint event actually creates a bitmap buffer for the other 2 graphs to avoid repeating a long loop. So the invalidate commands are in a specific order (1,...

Update existing Preference-item in a PreferenceActivity upon returning from a (sub)PreferenceScreen

I have a PreferenceActivity with a bunch of (Sub)PreferenceScreens. Each such (Sub)PreferenceScreen represents an account and has the account-username as its title. PreferenceScreen root = mgr.createPreferenceScreen(this); for (MyAccountClass account : myAccounts) { final PreferenceScreen accScreen = mgr.createPreferenceScreen(this)...

WPF calls not working during long method processing

Hi, The following method does not apply the wpf changes (background = red) until the 2nd method (DoWork) exits: private void change() { Background = Brushes.Red; Dispatcher.BeginInvoke((Action) DoWork); } DoWork() takes several seconds to run and I don't really want to put it into a thread, as this code will be used in several...

Blackberry invalidate field not causing a repaint

I'm writing a Blackberry app. I have a custom list field where I can select an item in the list which pushes the edit screen onto the stack. I edit the item and save, and when I pop that screen off so I am back on my list screen, I want to view the update I just made reflected in the list. I have done this on other screens which just had...

ListBoxItem height not getting updated

Hi, I have a listbox inside another list box, in inner list box listboxitems height may grow or shrink. My problem is that when the inner items shrink the outer list box doesn't re-render its height. Thus - stays with the previous height before the inner list shrinked. I have tried so many things here, among Invalidate of all types, s...