GetInMem

Syntax

GetInMemResult GetInMem(GetInMemArg tArg)

Parameters

tArg. Operation execution parameters.

Description

The GetInMem operation gets information about In-Memory cache of repository object.

Comments

The operation checks if a cube or a repository dictionary has In-Memory cache and checks its status. To execute the operation, in the tArg.cache.object field specify object access parameters. The operation results in the information about whether an object has cache and its actuality.

NOTE. To provide correct operation work, cache files should be used only by the current BI server.

Example

Below is the example of getting information about In-Memory cache for repository cube. The request contains cube moniker, the response contains information about cache.

The example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier example.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetInMem xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
<cache>
<object>
<id>
  <id>S1!M!5857</id>
  </id>
  </object>
  </cache>
  </tArg>
  </GetInMem>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetInMemResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<meta xmlns="">
<cache>
  <isOK>1</isOK>
<object>
<id>
  <id>S1!M!5857</id>
  </id>
  </object>
  <objectStatus>Exists</objectStatus>
  </cache>
  </meta>
  </GetInMemResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetInMem" :
{
"tArg" :
{
"cache" :
{
"object" :
{
"id" :
{
"id" : "S1!M!5857"
}
}
}
}
}
}

JSON response:

{
"GetInMemResult" :
{
"meta" :
{
"cache" :
{
"isOK" : "1",
"object" :
{
"id" :
{
"id" : "S1!M!5857"
}
},
"objectStatus" : "Exists"
}
}
}
}
public static GetInMemResult GetInMemParams(MbId mb, string objectId)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetInMem()
{
tArg = new GetInMemArg()
{
cache = new GetInMemCacheArg()
{
@object = new InMemCacheObject()
{
id = new OdId() { id = mb.id + "!" + FindObjectById(mb, objectId).k }
}
}
}
};
//Get information about object cache
var result = somClient.GetInMem(tGet);
return result;
}

See also:

Working with In-Memory Cache