<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.simswiki.info/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://simswiki.info/index.php?action=history&amp;feed=atom&amp;title=TS3PR%2FSimIFace%2FSims3.SimIFace%2FCacheManager</id>
		<title>TS3PR/SimIFace/Sims3.SimIFace/CacheManager - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://simswiki.info/index.php?action=history&amp;feed=atom&amp;title=TS3PR%2FSimIFace%2FSims3.SimIFace%2FCacheManager"/>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=TS3PR/SimIFace/Sims3.SimIFace/CacheManager&amp;action=history"/>
		<updated>2026-06-30T22:28:04Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://simswiki.info/index.php?title=TS3PR/SimIFace/Sims3.SimIFace/CacheManager&amp;diff=72851&amp;oldid=prev</id>
		<title>Lyralei: Gave CacheManager it's own page</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=TS3PR/SimIFace/Sims3.SimIFace/CacheManager&amp;diff=72851&amp;oldid=prev"/>
				<updated>2021-02-01T16:13:40Z</updated>
		
		<summary type="html">&lt;p&gt;Gave CacheManager it&amp;#039;s own page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Saves and loads the ITUN's Tuningdata (and possibly the XML tuning data) but also caches the information where necessary. &lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
public class CacheManager&lt;br /&gt;
{&lt;br /&gt;
	public static object PersistGroup;&lt;br /&gt;
&lt;br /&gt;
	public static ICacheManager sInstance;&lt;br /&gt;
&lt;br /&gt;
	public static bool IsCachingEnabled&lt;br /&gt;
	{&lt;br /&gt;
		get&lt;br /&gt;
		{&lt;br /&gt;
			return sInstance.IsCachingEnabled;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	static CacheManager()&lt;br /&gt;
	{&lt;br /&gt;
		PersistGroup = &amp;quot;CacheGroup&amp;quot;;&lt;br /&gt;
		sInstance = (ICacheManager)AppDomain.CurrentDomain.GetData(&amp;quot;CacheManager&amp;quot;);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	public static object LoadTuningData(string tag)&lt;br /&gt;
	{&lt;br /&gt;
		return sInstance.LoadTuningData(tag);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	public static void SaveTuningData(string tag, object baseObject)&lt;br /&gt;
	{&lt;br /&gt;
		sInstance.SaveTuningData(tag, baseObject, PersistGroup);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	public static byte[] LoadRawTuningData(string tag)&lt;br /&gt;
	{&lt;br /&gt;
		return sInstance.LoadRawTuningData(tag);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	public static void SaveRawTuningData(string tag, byte[] data)&lt;br /&gt;
	{&lt;br /&gt;
		sInstance.SaveRawTuningData(tag, data);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	public static byte[] Serialize(object baseObject, object basePersistGroup)&lt;br /&gt;
	{&lt;br /&gt;
		return sInstance.Serialize(baseObject, basePersistGroup);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	public static object Deserialize(byte[] data)&lt;br /&gt;
	{&lt;br /&gt;
		return sInstance.Deserialize(data);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lyralei</name></author>	</entry>

	</feed>