saveResourceToDisk

Saves the passed resource to disk, but in JSON format.

This is used with the associative arrays for ecount, as well as for keeping track of viewers.

version(TwitchSupport && WithTwitchPlugin)
private
void
saveResourceToDisk
(
RehashingAA!(long[string])[string] aa
,
const string filename
)

Parameters

aa RehashingAA!(long[string])[string]

The associative array to convert into JSON and save.

filename string

Filename of the file to write to.