how to put key of element to disk when used bigmemory - ehcache-bigmemory

I want to config hybrid mode to store the data on offheap and if offheap is full the data can be stored on disk,and how to put the key of element to disk?if you know,can you tell me how to put the key of the element on disk when I used the hybrid mode?

Related

How to bust the cache or obtain cache key when using <distributed-cache> Tag helper in Asp.net Core MVC

Having an issue with the <distributed-cache> tag and Redis.
We have a <partial> Razor view that displays results of a long-running query. We acquire the data from a service injected in using #inject. The data updates very rarely, hence we wrap the content in a <distributed-cache> tag helper, with a long expires-after attribute.
However, when the data is finally updated (in another part of our app), we need to delete that key from the distributed cache, in order to force the page to update on next execution. (It's not possible for us to predict when the data will change - we can only respond to an external event.)
The problem we're having is that, despite having a fixed name attribute, the cache key appears to be impossible to predict. For example <distributed-cache name='_myQuery' vary-by-user='true'> creates a key something along the lines 7/za/Bc/ZRn/MsR/hG69TYTx1LEzqBvlyH1OLJgrpk4= in Redis.
How can I either:
Predict/calculate what the cache key is going to be in redis, so that I can delete it in another part of our application?;
Force the <distributed-cache> tag to ignore the cached value this one time? I know we have the enabled property, because this isn't going to work because the page doesn't know when to invalidate the cache.
After digging into the ASP.NET Core source I've found the CacheTagKey.cs file, which contains the GenerateKey() and GenerateHaskedKey() methods. These methods create the key from a bunch of params, then SHA256 hashes the key and returns base64.
So it looks like I can use this to predict the cache key and solve the issue.

Suitelink Reference Table

I work with Wonderware software. One of the objects used to perform communication between Wonderware and the PLC is called Suitelink. In it, I have a table defined that has the name of one of my application fields on the left side and the name of the PLC tag providing its value on the right.
Once this saved and activated (deployed) the PLC tags will feed values in the field attributes to Wonderware.
Does anyone know where is this list saved in the system?
I am working at a web page and want to retrieve this list dynamically so I can have the page updated based on the current live value of the PLC tag being used.
I have looked in the database but could not find it.
C:\ProgramData\Wonderware\DAServer
Then within there you'll have several subfolders for your DA Servers. Open the subfolder to find a *.AAcfg file and your contents are in there in what looks like an XML format. You'll be hunting for all the <DeviceItem> tags

Using Symmetric keys in Tink

I am trying to store cleartext password in properties file and load that JSON using CleartextKeysetHandle.read
However, when I want to rotate the key, I would like to introduce another key which is another cleartext password. How can I load this key and add it to keymanager ?
Copied from https://groups.google.com/forum/#!topic/tink-users/5NHf8BOPWgM:
Yes. You can use KeysetManager [1] to rotate an existing keyset. Basically you read the keyset with CleartextKeysetHandle, and use the resulting KeysetHandle to build a KeysetManager which allows you to rotate, add or disable keys.
Cheers,
Thai.
[1] http://google.github.io/tink/javadoc/tink/1.2.2/com/google/crypto/tink/KeysetManager.html

Logic App retrieve values from custom created parameter names in a text file

having trouble with Logic App usage, so i am receiving a file with example text below and need to map them according to their tags. so for each tag they will go to different fields in my database. Keep in mind I cannot change the structure of the file, stays as is due to previous systems:
:2e:hello
:3t:there
:fy:people
What I do is pull the file from file storage and them i can access the content which are the values above. But what I need to do is check if i have ':2e:' and if so take its value which is 'there'.
Any suggestions?
thanks

WP7 tombstoning Memory Save

So for my windows phone 7 app, I am trying to save the user input after they 'tombstone' my app when I first debugged the app I got a KeyNotFoundException, but after I entered some data into my textbox and tombstoned my app the I didn't get a KeyNotFoundException. Can someone please help me with this problem?
KeyNotFoundException means that you are trying to get some data from data collection by key, and that key/value pair does not exist:
http://msdn.microsoft.com/en-us/library/system.collections.generic.keynotfoundexception.aspx
Before trying to access the date using key, first check if that key even exists using ContainsKey method:
http://msdn.microsoft.com/en-us/library/kw5aaea4

Resources