私は次のコードを持っています:
mongoClient = new MongoClient( "localhost" , 27017 );
db = mongoClient.getDB("hcm");
DBCollection coll = db.getCollection("segment_cell_details");
BasicDBObject query = new BasicDBObject("cell_x", cell_x).append("cell_y", cell_y);
DBCursor cursor = coll.find(query);
次に、 memcached に DBCursor を追加します。
c = new MemcachedClient(AddrUtil.getAddresses("localhost:11211"));
c.add("Key", 3600, cursor);
次に、システムは「シリアル化できないオブジェクトエラー」を出力します
では、クエリの結果を memcached に追加するにはどうすればよいですか?