<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[About data when using Presence API]]></title><description><![CDATA[<p>Re: <a href="/topic/154/join-rooms-sharing-auth">Join rooms sharing auth</a></p>
<p>Hi, I read the thread but I'm unsure about what I understand.<br />
If we set data on Redis using:<br />
roomInstance.presence.hset(...)<br />
Will the data be lost when the Room is disposed?<br />
I think the data should be there until we manually delete it right?</p>
<p>If the data is lost when the Room is disposed, but I want the cached data to be still available, should I create a stand alone Redis client, and use the raw Redis API to cache data?<br />
Please suggest... Any help is much appreciated! 😃</p>
]]></description><link>http://discuss.colyseus.io/topic/177/about-data-when-using-presence-api</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 15:23:04 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/177.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Dec 2018 13:57:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to About data when using Presence API on Invalid Date]]></title><description><![CDATA[<p>Re: <a href="/topic/154/join-rooms-sharing-auth">Join rooms sharing auth</a></p>
<p>Hi, I read the thread but I'm unsure about what I understand.<br />
If we set data on Redis using:<br />
roomInstance.presence.hset(...)<br />
Will the data be lost when the Room is disposed?<br />
I think the data should be there until we manually delete it right?</p>
<p>If the data is lost when the Room is disposed, but I want the cached data to be still available, should I create a stand alone Redis client, and use the raw Redis API to cache data?<br />
Please suggest... Any help is much appreciated! 😃</p>
]]></description><link>http://discuss.colyseus.io/post/581</link><guid isPermaLink="true">http://discuss.colyseus.io/post/581</guid><dc:creator><![CDATA[itoonom]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to About data when using Presence API on Invalid Date]]></title><description><![CDATA[<p>Hi, <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/239">@itoonom</a>, welcome!</p>
<p>If you're using Visual Studio Code, you can Right click + Go to definition (F12) on the <code>RedisPresence</code>, and <code>redis.ClientOpts</code>, which you'll see all accepted config values for <code>RedisPresence</code> constructor, which are:</p>
<pre><code>export interface ClientOpts {
    host?: string;
    port?: number;
    path?: string;
    url?: string;
    parser?: string;
    string_numbers?: boolean;
    return_buffers?: boolean;
    detect_buffers?: boolean;
    socket_keepalive?: boolean;
    no_ready_check?: boolean;
    enable_offline_queue?: boolean;
    retry_max_delay?: number;
    connect_timeout?: number;
    max_attempts?: number;
    retry_unfulfilled_commands?: boolean;
    auth_pass?: string;
    password?: string;
    db?: string | number;
    family?: string;
    rename_commands?: { [command: string]: string } | null;
    tls?: any;
    prefix?: string;
    retry_strategy?: RetryStrategy;
}
</code></pre>
<p>You should pass a plain JavaScript object BTW, no need to call <code>new ClientOpts</code>. Example:</p>
<pre><code>new colyseus.RedisPresence({
    // your Redis configs here
});
</code></pre>
]]></description><link>http://discuss.colyseus.io/post/588</link><guid isPermaLink="true">http://discuss.colyseus.io/post/588</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to About data when using Presence API on Sat, 15 Dec 2018 18:54:28 GMT]]></title><description><![CDATA[<p>The data stored via the <code>presence</code> API is <strong>not</strong> disposed automatically. It's up to you when to remove them.</p>
]]></description><link>http://discuss.colyseus.io/post/589</link><guid isPermaLink="true">http://discuss.colyseus.io/post/589</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Sat, 15 Dec 2018 18:54:28 GMT</pubDate></item><item><title><![CDATA[Reply to About data when using Presence API on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/1">@endel</a><br />
Thank you very much.<br />
Your help gives me more confidence to keep going on. The scaling topic is all new to me, so every single explanation/example counts!</p>
]]></description><link>http://discuss.colyseus.io/post/597</link><guid isPermaLink="true">http://discuss.colyseus.io/post/597</guid><dc:creator><![CDATA[itoonom]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>