ReadPersistentStorage() if key not exist

Started by Staj, August 20, 2020, 07:45:51 AM

Previous topic - Next topic

Staj

According to the documentation, ReadPersistentStorage() is suppose to return null if key does not exist but it seems to be returning an empty string ("") for a recently deleted (This is all happening within EPP) Persistent Storage value.

Is this a bug?

Filipp Sudanov

So you are deleting also from EPP?
If you are deleting from NXSL, do you delete like this:
WritePersistentStorage("key1", NULL);

Victor Kirhenshtein