public static StatusModel GetIfCacheIsAlive(long id) { StatusModel model; WeakReference<StatusModel> wr; _staticCache.TryGetValue(id, out wr); if (wr != null && wr.TryGetTarget(out model)) { return model; } return null; }