GithubHelp home page GithubHelp logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
1. Yes, it is. Because SSMCache is used when you use Cacheable Spring 
annotation and there is no way to pass information about serialization. If you 
use SSM annotations (ReadThroughMultiCache, ...) you can use 
com.google.code.ssm.api.format.Serialization to specify serialization type.
There is a workaround for Spring Cache annotations, to use Spring annotations 
and custom SSM serialization set CacheFactory.defaultSerializationType to 
SerializationType.CUSTOM.

2. No exactly because you have to specify default serialization type: CUSTOM, 
PROVIDER, JSON, ... and you can overwrite it at method level. It is not 
possible to define that objects of one class will be used JSON and another 
CUSTOM. 
You should look at:
om.google.code.ssm.transcoders.JsonTranscoder and 
com.google.code.ssm.mapper.JsonObjectMapper
it uses Jackson library for JSON serialization type. Using it you can define 
how given class will be serialized. You may also want to read more about 
Jackson's MixIn: http://wiki.fasterxml.com/JacksonMixInAnnotations, the library 
provide a lot of great features while serializing/deserializing java objects. 

3. If use use Spring Cacheable annotation then whole collection is stored under 
single key and you have to provide serialization for Collection. The 
com.google.code.ssm.mapper.JsonObjectMapper can again come in handy, it should 
use default (jackson) mechanizm for serializing collection/list and your custom 
for objects if dedicated JsonSerializer was registered.

Original comment by [email protected] on 3 Feb 2014 at 10:11

from simple-spring-memcached.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Do you need further assistance or everything is clear and I can close the issue?

BTW if you have some questions (not bug report or feature request) you may use 
mailing list: [email protected]

Original comment by [email protected] on 6 Feb 2014 at 6:32

from simple-spring-memcached.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
I implemented a hybrid solution by using JsonTranscoder and JavaTranscoder. I 
will share details later. 

Thank you so much for your awesome support.

Original comment by [email protected] on 6 Feb 2014 at 7:31

from simple-spring-memcached.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
This issue has been moved to github: 
https://github.com/ragnor/simple-spring-memcached/issues/27

Original comment by [email protected] on 24 Feb 2014 at 5:50

from simple-spring-memcached.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.