AWS SDK for JavaのTransferManagerを使うと、非同期でS3にファイルをアップロードすることができます。 POM <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk</artifactId> <version>1.3.33</version> </dependency> サンプルコード(1) 非同期でファイルをアップロードして、アップロード状況を表示します。import java.io.File; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.services.s3.transfer.TransferManager; import com.amazonaws.services.s3.tr
redis-rb を使って Redis に値を保存する際に自動的に圧縮して、取り出す時には自動的に展開してくれたら便利だな、と思って試しに作ってみました。 Redis::Client へのモンキーパッチで、コマンド判別して Zlib::Deflate と Zlib::Inflate 使って圧縮・展開するようにしています。 とりあえず対応している Redis のコマンドは書込みは set, setex, setnx, psetex、読み込みは get だけです。 使い方は以下のような感じ。 # -*- coding: utf-8 -*- require 'redis' require 'redis/distributed' require './auto_compression_redis' REDIS_MASTERS = [ {url: "redis://192.0.2.1:6379/1"
I have been debating with one of the developers at LogicPad about the pros and cons of various caching systems and we’ve got it narrowed down to Memcached and Redis. I’ve used Memcached a lot in the past, but am now firmly fighting the corner of Redis. I thought I’d summarise my thoughts on the matter here. The conversation began when we were talking about message queues and using Resque, a Redis-
こんにちは、鈴木です。 Redis におけるデータの永続化についてです。 RDB と AOF Redis におけるデータの永続化には 2 つの方式があります。 一つは RDB ファイル(RDB = Redis DataBase だと思います)に書き出す方式で、あるタイミングのスナップショット(フルダンプ)です。 もう一つは更新系のクエリが逐次追記される AOF (Append Only File) です。 RDB と AOF は両方を有効にすることができ、その場合は RDB と AOF の両方が出力されますが、Redis 起動時には AOF からデータが復元されます。 RDB を保存する RDB ファイルを保存するには、save ディレクティブで保存するタイミングを指定します。
“Casino of the Month” is the currently featured online casino brand that you may want to visit, in order to receive the most exclusive content & Best Bonus that will be available for all players. Many things are taken under consideration while trying to pick the Best gambling site and present it within this section. Including the amount of games and current promotional campaigns, any of those may
FacebookやTwitterからEvernoteにGmailまで、59個ものウェブサービスを連携させてさまざまな作業を自動で行えるようにする無料のクラウドアプリケーションが「IFTTT」です。このシステムの最大の特徴はサービスどうしを連携させるための設定がとてもシンプルな点で、難しいコードを書いたり複雑なパラメーターを入力する必要は一切ありません。ただクリックをして行くだけの簡単な作業でほとんどの設定が済んでしまうので、Yahoo! Pipesでは挫折してしまった、という人でも安心して利用できそうなサービスです。 IFTTT / Put the internet to work for you. https://ifttt.com/ ちなみに「IFTTT」とは「If This Then That」の略となっており、「コレが起こったらソレをしてね」という感じの意味で、ユーザーが使用してい
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く