New WF4 Caching Activities for Windows Server AppFabric

I’m happy to announce that we have just posted a “Labs” release on our http://wf.codeplex.com site with some new Caching Activities.  These activities work with Windows Server AppFabric Caching making it possible for you to use the cache directly from your workflow In this example I’m implementing the “Cache Aside” pattern where I first try…

0

DataCache.Put with Regions

If you really want to understand how something works.  Try creating an interface and then creating a stubbed implementation that behaves exactly the same way.  It’s a big job but wow – I’m learning so much about Windows Server AppFabric Caching by doing this. Consider this method DataCache.Put public DataCacheItemVersion Put ( string key, Object…

0

The specified module ‘DistributedCacheAdministration’ was not loaded because no valid module file was found in any module directory.

What to do if you get this error when unit testing Windows Server AppFabric Caching Being new to unit testing code that invokes PowerShell I ran into this problem when trying to test code that was using the Windows Server AppFabric Caching cmdlets. System.Management.Automation.Runspaces.RunspaceOpenModuleLoadException was unhandled by user code   Message=One or more errors occurred…

0

Using Moq with Windows Server AppFabric Caching

Last week I tried doing TDD with Windows Server AppFabric.  In my previous post I shared with you my conclusions.  To sum it up, doing TDD with AppFabric caching is painful; even more painful than using a database in your unit tests. Over the weekend I decided to see if I could use Moq to…

1

Unit Testing with Windows Server AppFabric Caching

I like to do TDD whenever I can.  So today I was writing some code that would be using the distributed cache features of Windows Server AppFabric and I decided to write unit tests first and then implement my code. Writing code that uses an external store like a file, a database or a distributed…

3

<localCache> sync attribute changed in Windows Server AppFabric Beta 2 Refresh

Surprise!  another change hit me this morning.  Previously my config files contained this   1: <dataCacheClient> 2: <hosts> 3: <host name="localhost" cachePort="22233" /> 4: </hosts> 5: <localCache isEnabled="true" sync="TTLBased" objectCount="100000" ttlValue="300" /> 6: </dataCacheClient> 7: 8: Line 5 has the attribute sync with the value of TTLBased. In Windows Server AppFabric Beta 2 refresh there…

0

Using AppFabric Caching Powershell cmdlets with AppFabric Beta 2 Refresh

Finally – I can use Visual Studio 2010 RTM with the new AppFabric Beta 2 Refresh release.  I installed it using the Web Platform Installer (still the best way on a dev box).   I couldn’t remember the particular cmdlet I was looking for so I remembered that we had a cmdlet called Get-CacheHelp but…

2