Transformer SDK For C  6.2.11.309924
Configuration: Transformer Cache

memory-file

Type: String
Default: None

Location of the file where the Transformer's cache is save to on shutdown and restored from on startup.

The following expansions can be made:

memory-hash-size

Type: Integer
Default: 16384

Size of hashtable used for storing all cached objects. The value of this should be roughly twice the total number of objects that you wish to cache.

add-purge

Type: Function
Default: None

If the Transformer is consuming data from a broadcast feed, it may be useful to remove objects from the database that have not been updated after a certain period of time.

Format:

add-purge <time> <days> <object pattern>

Where <time> is the number of minutes past minute that the purging should happen. <days> is the number of days that should have elapsed since an update occurred. <object pattern> details that objects that this purge should be applied to.

The purging will occur every day at the configure <time>.

Example: Purge at 04:00, all objects under the /I directory that haven't had an an update in 7 days

add-purge 240 7 /I/*

record-max-cache

Type: Integer
Default: 10

The maximum number of elements of type 3 data to keep for each record.

type2-hash-size

Type: Integer
Default: 65536

The size of the type 2 data hashtable. The value of this option should be set to the maximum number of type 2 updates that need to be cached.

news-max-headlines

Type: Integer
Default: -1

Maximum number of news headlines to cache. The default of -1 means that all news headlines will be cached and none will be removed unless removed by a F_DELETE_HEADLINE message or purged using news-purge-time.

news-purge-time

Type: Integer
Default: -1

This represents the number of minutes from midnight that the purge of news headlines (i.e. deletion from the cache) should take place.

The default of -1 indicates that no purge takes place, in which case news-max-headlines will limit the number of cached hearlines.

news-purge-days

Type: Floating point value
Default: 0

Number of days-worth of headlines to keep when purging.

Configuration group add-newsconfig

add-newsconfig

This configuration group allows the days-worth and maximum number of cached headlines to be tuned for a particular news symbol.

symbol

Type: String
Default: None
Group: add-newsconfig

News symbol that this group applies to.

purge-days

Type: Floating point value
Default: 0
Group: add-newsconfig

Number of days-worth of headlines to keep when purging. The purging will occur at the time specified by the news-purge-time configuration option.

max-headlines

Type: Integer
Default: -1
Group: add-newsconfig

Maximum number of news headlines to cache. The default of -1 means that all news headlines will be cached and none will be removed unless removed by a F_DELETE_HEADLINE message or purged using news-purge-time.


Generated on Sat Aug 26 2017 12:36:32 for Transformer SDK For C