Exemple #1
0
        public void DynamoDBExpirationTest()
        {
            ChangeConnString(DynamoDBConnString);
            ChangeProvider(ProviderTypeOptions.DynamoDB);
            ChangeFormatterType(FormatterTypeOptions.JsonCompressed);

            for (int i = 0; i < 20; i++)
            {
                PutItemToExpire(1024 * 100);
                //System.Threading.Thread.Sleep(10);
            }

            var expirer = new DynamoDBExpirer(DynamoDBManagerConnString);

            expirer.RemoveExpiredItems();
        }
Exemple #2
0
        private static void ExpireForConnection(string connection)
        {
            var expirer = new DynamoDBExpirer(connection);

            expirer.RemoveExpiredItems();
        }