I have a service running on different machine from SOSS Server. Items get registered as "WriteBehind" but event seem to get lost.
What Am I missing, or these events can only be handled by programs running on the same server as SOSS Server itself?
Code in the program to insert value:
And the code from different program that should catch the "Store" event:
cacheAdapter class implements IBackingStore and works fine locally on my machine
What Am I missing, or these events can only be handled by programs running on the same server as SOSS Server itself?
Code in the program to insert value:
Code:
Dim Cache As NamedCache = CacheFactory.GetCache("sceMarketplace")
Dim sKey As String = "$" & input.Credentials.StoreID & "#" & marketplaceID.ToString()
Dim policy As New CreatePolicy(TimeSpan.FromDays(2), False)
policy.BackingStoreMode = BackingStoreAsyncPolicy.WriteBehind
policy.BackingStoreInterval = TimeSpan.FromSeconds(10)
policy.PreemptionPriority = ObjectPreemptionPriority.NotRemovable
Cache.Insert(sKey, sKey, policy, False, False)
Code:
_cache = CacheFactory.GetCache("sceMarketplace")
Dim policy As New BackingStorePolicy()
Dim adapter As New SCEBingLogic.cacheAdapter
policy.EnableAsyncOperations = True
adapter.storeAction = New Action(Of String)(AddressOf StartForced)
_cache.SetBackingStoreAdapter(adapter, policy)