c#代码转VB.NET
请将以下代码转VB.NET,谢谢。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Enyim.Caching;
namespace BBS.Core
{
public class CrossSiteLoginInfoHelper
{
public static string Set(string userID)
{
string token = Guid.NewGuid().ToString("N");
return Set(token, userID) ? token : "";
}
public static bool Set(string token, string userID)
{
using (MemcachedClient client = new MemcachedClient())
{
return client.Store(Enyim.Caching.Memcached.StoreMode.Set, token, userID);
}
}
public static string Get(string token)
{
using (MemcachedClient client = new MemcachedClient())
{
return client.Get<string>(token);
}
}
public static string GetAndRemove(string token)
{
using (MemcachedClient client = new MemcachedClient())
{
string str = client.Get<string>(token);
client.Remove(token);
return str;
}
}
}
}