I am using the Genexus Cache API and trying to get the value of a key gives me a .net exception.
Where will the problem come from?
Setting:
Mistake:
In the log add:
DEBUG StoneFramework - StoneFramework.Caching.CacheGet|SecurityParametersType
DEBUG GeneXus.Services.GXServices - Loading STORAGE_SERVICE:D:\KBs\GProjexEv3\GP_Prototipo\web\CloudServices.config
DEBUG GeneXus.Cache.CacheFactory - Loading CACHE_PROVIDER: GeneXus.Cache.Memcached, GxMemcached, Version=11.0.0.0, Culture=neutral, PublicKeyToken=6f5bf81c27b6b8aa
DEBUG StoneFramework - StoneFramework.Caching.CacheGet|GPARAMETERSTYPE
"StoneFramework.Caching.CacheGet" Called prior to &Cache.Get().
This could happen if in stoneframework, that &Cache variable on which the &Cache.Get() is performed was not initialized. That is, if before doing &Cache.Get something like this was not done: &Cache = Cache.GetCache("StoneCache")
However, uninitialized shouldn't throw that exception, it's an error.
Fixed, I needed to initialize the &Cache variable
&Cache = Cache.GetCache( !"StoneFramework" )