Page 299 - DCAP408_WEB_PROGRAMMING
P. 299
Unit 13: ASP Cookies and Caching
There are very many different implementations of the caching functionality, but all of them Notes
have a lot in common. I will use the “Microsoft Enterprise Library Caching Application Block”
and will present you a way of simplifying the usage of the caching functionality.
My implementation of the caching functionality can be divided into two main parts: the cache
manager utility and its usage. It heavily uses anonymous methods and generic methods (new
features of .NET 2.0).
CacheService is a manager utility that is implemented as a singleton wrapper for underlying
the MS caching API. It grants a few methods (GetData<t>,Add, Remove).
Self Assessment
Fill in the blanks:
14. Use caching of data for a small period of time and avoid caching for the whole
……………………..
15. Expiration of the cache is handled by deleting the …………………….. file.
Caselet ‘E-commerce Proves a Big Boon for Entrepreneurs’
id you know there’s a market for Ramayana in Zambia? Neither did Mr Chinmay
Tripathi, seller of religious books online, till a customer from that country placed
Dan order for one of his products on his account on an online shopping portal.
Thanks to distances being bridged by e-commerce, the value of transactions across cyber
space in India is estimated at 1,180 crore in 2004-05, and is projected to hit 2,300 crore in
2006-07, according to the Internet and Mobile Association of India.
The Internet is a big boon for new age entrepreneurs as this saves them the initial investment
in a store and the subsequent management costs. Mr Tripathi is only a part-time
programmer, who is busy with his full time business of managing his 120-plus registered
accounts in shopping portals worldwide. He sells 200 to 300 religious books a month to
customers in places ranging from Haridwar to Djakarta.
A few thousand of eBay’s two million users in India make their living through this Web
site, according to a spokesperson of eBay. Similarly, on Rediff.com’s shopping portal, the
business focus of 70-80 per cent of the company’s total base of e-commerce partners is
purely online, according to Mr Jasmeet Singh, Vice President - Product Marketing,
Rediff.com. Mr Singh said e-commerce has grown positively in the last two years. He said
there has been an increasing demand for convenience-driven services such as purchase of
railway and airline tickets.
Another driving factor is the reduced cost of the products purchased online. The customer
can save up to 30 per cent, said Mr Ambesh Khanna, who, along with Ms Reena Khanna,
sells diamonds on ebay on a full-time basis. This is a because of the low day-to-day
running costs for the seller. “We buy the diamonds locally (The Khannas are based in
Delhi), and sell it through the Internet throughout India and also worldwide to countries
like the US, Germany and Australia,” said Mr Khanna. He said they have sold jewellery
priced from 5,000 to 1.5 lakh online, generating revenues of about 4 lakh a month.
E-commerce also serves as a starting point for businesses. Mr Bomi Rupa, as a student in
the US in 2003, saw in the Internet an opportunity to import low-end laptops from the US
Contd...
LOVELY PROFESSIONAL UNIVERSITY 293