public override void Put(string key, string value)
{
if (UnityInitializer.IsMainThread())
{
PutHelper(key, value);
}
else
{
AutoResetEvent asyncEvent = new AutoResetEvent(false);
UnityRequestQueue.Instance.ExecuteOnMainThread(() =>
{
PutHelper(key, value);
asyncEvent.Set();
});
asyncEvent.WaitOne();
}
}