Comments (4)
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.
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.
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.
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)
- The cache with name or alias 'default' is no defined HOT 7
- more fexibility with CacheKeyMethod and key generation HOT 9
- Using @ReturnValueKeyProvider for an @UpdateSingleCache annotated method does not generate key properly HOT 5
- Clear multiple keys HOT 2
- Maven provided dependencies. HOT 4
- add connect timeout from CacheClientFactory HOT 4
- Guice support HOT 4
- ReadThroughMultiCache returns incomplete results if memcached client times out HOT 8
- spring-cache cacheAlias(cache zone) support. HOT 8
- IncompatibleClassChangeError: Implementing class under Jetty 7.6.8.v20121106 HOT 2
- Unsorted results when using ReadThroughMultiCacheAdvice HOT 13
- Support server weights for XMemcachedClientBuilder HOT 3
- Java based configuration HOT 5
- CacheValueMethod HOT 3
- Update jackson to latest HOT 12
- Serializers are not called HOT 16
- MetricCollector support for Spymemcached HOT 7
- aspectjrt jar conflict HOT 6
- 启动报错 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-spring-memcached.