docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BrowserKeyValueStore

    An IKeyValueStore implementation that uses browser host capabilities for storage.

    Inheritance
    object
    BrowserKeyValueStore
    Implements
    IKeyValueStore
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Common.Runtime
    Assembly: Unity.Cloud.Common.Runtime.dll
    Syntax
    public class BrowserKeyValueStore : IKeyValueStore

    Constructors

    BrowserKeyValueStore()

    Creates a BrowserKeyValueStore instance.

    Declaration
    public BrowserKeyValueStore()
    Exceptions
    Type Condition
    PlatformNotSupportedException

    Thrown if used outside a Unity WebGL execution context.

    Methods

    DeleteCacheAsync(string)

    Declaration
    public Task DeleteCacheAsync(string filename)
    Parameters
    Type Name Description
    string filename
    Returns
    Type Description
    Task

    ReadCacheAsync(string)

    Declaration
    public Task<string> ReadCacheAsync(string filename)
    Parameters
    Type Name Description
    string filename
    Returns
    Type Description
    Task<string>

    ValidateFilenameExistsAsync(string)

    Declaration
    public Task<bool> ValidateFilenameExistsAsync(string filename)
    Parameters
    Type Name Description
    string filename
    Returns
    Type Description
    Task<bool>

    WriteToCacheAsync(string, string)

    Declaration
    public Task WriteToCacheAsync(string filename, string content)
    Parameters
    Type Name Description
    string filename
    string content
    Returns
    Type Description
    Task

    Implements

    IKeyValueStore
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)