Пример #1
0
        public static bool GraphKeyItemExist(BlockGraph graph, string key)
        {
            var conn        = muxer.GetDatabase(GetGraphDatabaseId());
            var isolatedKey = graph.GetId() + "/" + key;

            return(conn.KeyExists(isolatedKey));
        }
Пример #2
0
        public static void SetGraphKeyItem(BlockGraph graph, string key, string value)
        {
            var conn        = muxer.GetDatabase(GetGraphDatabaseId());
            var isolatedKey = graph.GetId() + "/" + key;

            conn.StringSet(isolatedKey, value);
        }